Putting spacing between strings
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I am trying to print out something like this:
A (10 blank spaces) B (10 blank spaces) C
any ideas?
3 Kommentare
Antworten (1)
jgg
am 23 Jan. 2016
Bearbeitet: jgg
am 23 Jan. 2016
You can do this by sending them to strings then concatenating them:
A = 1;
B = 8;
C= 9;
space = ' ';
str = [num2str(A),space,num2str(B),space,num2str(C)];
disp(str)
or you can print str to a file (it's unclear what you mean by "print out")
0 Kommentare
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!