Error using + Matrix dimensions must agree.
Mostra commenti meno recenti
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 Commenti
Shrestha Kumar
il 4 Giu 2018
What do you want to do with this code? You want to concatenate each row of the matrix to results??
Gonçalo Cordeiro
il 4 Giu 2018
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Creating and Concatenating Matrices in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!