how to add to matrix of different dimensions
1 次查看(过去 30 天)
显示 更早的评论
Ex: a=3*10; b=b+a; in the first iteration b is getting 3*10, next iteration if a is 7*10 getting error. how to rectify
6 个评论
Walter Roberson
2018-6-27
If b is 3 x 10 and a is 4 x 10 and you want to combine into a 7 x 10 array, then
b = [b; a];
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!