appending matrix into a matrix

James Sherman Jr. shermanj at umd.edu
Wed May 13 12:54:50 CDT 2009


If you want to do it by adding rows, I think you're looking for something
like
T = [];

for i = 1:length(C)
   T = [T;C{i}];
end

If you want to do it by adding columns, just change the ; to a ,

Hope this helps.


On Wed, May 13, 2009 at 1:05 PM, Carlo Rossi <serosole at yahoo.it> wrote:

> Hello,
>  I need to appending a matrix to a matrix like here:
>
>    for i=1 : 10
>          T = CELL{i};
>     end
>
> but in this way T is overwritten. How can I do? thanks,
>
>
>
> _______________________________________________
> Help-octave mailing list
> Help-octave at octave.org
> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20090513/1a8bf3ee/attachment.html 


More information about the Help-octave mailing list