Obtaning a matrix with the right indexes
2 views (last 30 days)
A want to obtain a matrix A(4xN)=[A11 A21 A31 A41; A12 A22 A32 A42; ...; A1N A2N A3N A4N].
So I think that I have to do something like this:
syms A1 A2 A3 A4;
N=10; %for example
A(:,i)=[A1; A2; A3; A4]
B(:,j)=[j; j; j; j]
%And now I have to do a concatenation:
%But this won't work of course and I don't know if some part of my program is correct or there is a different approach for this.
Thank you for your atention.
More Answers (1)
Ahmed A. Selman on 18 Apr 2013
Try this out to see if it solves the issue:
N=20; %for example