Different size matrix data addition
1 次查看(过去 30 天)
显示 更早的评论
I have different matrix size for different data file. say one data is 846x399 and another is 4208x399. I need to add all the files. how to do it?
0 个评论
回答(1 个)
DEEPAK SHARMA
2020-5-20
Define your Matrix A(846x399) , B(4208x399)
Define C = zeros(1,399);
A = [A;repmat(C,3362,1)];
new Matrix A will be 4208x399
now you can add A and B
1 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!