Help with fprintf displaying results in 2 columns

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)

radx=0:pi/10:2*pi;
degx=rad2deg(radx);
fprintf('rad \t\t deg\n')
fprintf('%f %f\n',[radx;degx])

Products

Release

R2020a

Asked:

on 13 Jun 2020

Commented:

on 13 Jun 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!