Hello everbody,
I am fairly new to Matlab and I have some difficulties solving a task from university.
The task ist to assemble two matrices into one global matrices in such form:
A = [ 1 2; 1 2 ]
B = [2 3; 2 3]
C = [1 2 0; 1 4 3; 0 2 3]
I tried it using a for loop but I can't manage to insert them into the given form in C.
When searching for a solution I came across "indexing" but I couldn't figure out how to use it in my problem.
I am grateful for any and all help!
3 Comments
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/722049-assembling-two-matrices-into-one-in-a-given-pattern#comment_1274289
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/722049-assembling-two-matrices-into-one-in-a-given-pattern#comment_1274289
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/722049-assembling-two-matrices-into-one-in-a-given-pattern#comment_1274304
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/722049-assembling-two-matrices-into-one-in-a-given-pattern#comment_1274304
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/722049-assembling-two-matrices-into-one-in-a-given-pattern#comment_1275043
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/722049-assembling-two-matrices-into-one-in-a-given-pattern#comment_1275043
Sign in to comment.