How to create this matrix ?
显示 更早的评论
I have a matrix whose size is 2x5x2 double and i have another matrix which is 2X5 double ,i just want to add together and make a simple matrix A,
in this A matrix there will be 2 rows ,total 15 column .
2 个评论
Sam Chak
2022-7-10
Hi @Akash Pal
Can you really add matrices of incompatible sizes?
Akash Pal
2022-7-10
采纳的回答
更多回答(1 个)
Despite the Matrix Law forbids the operation, we can nearly always perform miracles with MATLAB, so long as you give the example of the desired output. Given M and N, how do you want to display the output of 
M(:,:,1) = [1 2 3 4 5; 6 7 8 9 10];
M(:,:,2) = 2*[1 2 3 4 5; 6 7 8 9 10];
M
N = 3*M(:,:,1)
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB Coder 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!