In the previous post, I have learned how to create a matrix of the form
0 0 0 0 0 0.10 0 0.20 0 0.30 0 0.40 0 0.50 0.1 0.10 0.1 0.20 0.1 0.3
using
[X, Y, Z] = ndgrid(0:.1:0.5); [Z(:), Y(:), X(:)]
Now I want to create a matrix of the form that the third column comes from another vector (say) 1:.1:1.5. Please advise.
Best Answer