Help with fprintf displaying results in 2 columns
Show older comments
I am attempting to get the tables to display side by side but degx keeps displaying below radx. Can anyone help me with this? Its supposed to be a table of the values of radians to degrees.
radx=0:pi/10:2*pi;
degx=0:36:360;
fprintf('rad \t\t deg\n')
fprintf('%f \t %f\n',[radx,degx].')
Answers (1)
madhan ravi
on 13 Jun 2020
Edited: madhan ravi
on 13 Jun 2020
radx=0:pi/10:2*pi;
degx=rad2deg(radx);
fprintf('rad \t\t deg\n')
fprintf('%f %f\n',[radx;degx])
1 Comment
Sean Piscetelli
on 13 Jun 2020
Categories
Find more on Logical 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!