How can make code to present this following case?
显示 更早的评论
I am doing my research. I have problem to make code to present this following matrices.
A=[ 1 2 3 4;
3 2 1 4]
And i have this following matrices to present value in matrices A.
value=1,
A(1)=[1 1 1;
1 1 1]
value=2,
A(2)=[2 2 2;
2 2 2]
value=3,
A(3)=[3 3 3;
4 4 4]
value=4,
A(4)=[4 4 4;
3 3 3]
So that I will get this following matrices
Res=[1 1 1 2 2 2 3 3 3 4 4 4;
1 1 1 2 2 2 4 4 4 3 3 3;
3 3 3 2 2 2 1 1 1 4 4 4;
4 4 4 2 2 2 1 1 1 3 3 3]
Thanks for your help.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Mathematics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!