Hi,

First of all you initialize "w" as Float64 which you do not probably want.

For creating vector of strings you colud write:

w = ["col" * string(i) for i in 1:100000]


or:

w = Array(ASCIIString, 100000)


for i = 1:100000

  w [i] = "col" * string(i)

end


Bogumil


On Wednesday, January 1, 2014 11:07:06 AM UTC+1, paul analyst wrote:
>
> I need a vector of string of subtitles: col1, col2, col3, ..., col100000
> How to join "col" phrase with numbers of  var(i) ( in the loop)
>
> w = zeros (100000);
>
> for i = 1:100000
> w [i] =???
> end
>
> Paul
>

Reply via email to