Error using + Matrix dimensions must agree.
显示 更早的评论
this is my code:
results = '';
for i = 1 : 1 : length(BBArray)
results = results + sprintf('%.0f\t' , BBArray(i, :))+'\n';
results + sprintf('%.0f\t' , BBArray(i, :))+'\n';
end
results;
how can i improve?
2 个评论
Shrestha Kumar
2018-6-4
What do you want to do with this code? You want to concatenate each row of the matrix to results??
Gonçalo Cordeiro
2018-6-4
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!