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!