Is it possible to copy a matrix with size (52x2) to another matrix with size (52x3)
2 次查看(过去 30 天)
显示 更早的评论
Hello everyone, I want to copy a matrix with size (52x2) to another matrix which is full of zeros (52x3) and I want the third column of (53x3) matrix to stay still full of zeros. Is it possible? And how can ı do it? Thank you
0 个评论
采纳的回答
Walter Roberson
2018-9-29
Source = randi(10, 52, 2); %for example
Target = zeros(52, 3);
Target(:,1:2) = Source;
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 NaNs 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!