create a vector and vector of matrix
Carlo Rossi
serosole at yahoo.it
Wed May 13 09:46:43 CDT 2009
Hello,
I need to create a vector; this work but is there something more compact?
repmat(0, length(A), 1)
eg:
0
0
0
0
furthermore as I have to repeat the operation for 5 times, there is the way to do it in a loop as well:
repmat(0, length(A0), 1)
repmat(1, length(A1), 1)
repmat(2, length(A2), 1)
repmat(3, length(A3), 1)
I mean: is it possible to create a vector of matrix indexes a vecot like this
V = [A0 A1 A2 A3] and use V[i] to access to a matrix?
thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20090513/2481ba3a/attachment.html
More information about the Help-octave
mailing list