First of all:
for (i=1,i<=1000, i++),
This is not Matlab, looks like java, in Matlab it would be
for i=1:1000
end
Now, you have a 1D vector [1x321] (say it is OneDVector) and will now have 1000 of those, you could do something like this
for i=1:1000
TwoD_vector(i,:)= OneDVector; %here you add the noise
end
And you will have a [1000x321] matrix, then you can display like this
mesh(TwoD_vector)
surf(TwoD_vector)
ribbon(TwoD_vector)
ribbon(TwoD_vector')
etc.