Printing table susing fprintf
Show older comments
I have the following script; my problem is that I cannot get all the values in A under column A in the frprintf. Any ideas?
A=[1;3;2;8;9]; B=2*pi*A; fprintf('A B\n'); fprintf('======\n'); fprintf('%d %d\n',A,B);
Accepted Answer
More Answers (1)
Erick Miranda
on 29 Jan 2020
0 votes
Thank you, thank you...
fprintf('%d %d\n', [A, B].');
I have a question what is, or how does it work " .' "
Categories
Find more on Dates and Time in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!