Error using + Matrix dimensions must agree.
Mostrar comentarios más antiguos
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 comentarios
Shrestha Kumar
el 4 de Jun. de 2018
What do you want to do with this code? You want to concatenate each row of the matrix to results??
Gonçalo Cordeiro
el 4 de Jun. de 2018
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!