How can i display the table results vertically?

Hi Matlab community,
i was looking for how could i display the output results in the table vertically. When i run the program which i written it , all the answers displayed in one row, as shown in the following figure.
so i want it to be displayed in a multiple rows in the screen
looking for your answers. Best regard
clc
clear
i= input ('How many inputs you have ?');
firstval= i;
while i > 0
Ma(i) = input ('put the mach number');
W = (0.2*Ma(i)^2)+1;
T(i) = 1/W ;
P(i) = 1/W^3.5;
D(i) = 1/W^2.5;
A(i) = (1/Ma(i))*(W^3/1.728);
disp ('the value of T/To =')
disp (T(i))
disp ('the value of P/Po =')
disp (P(i))
disp ('the value of R/Ro =')
disp (D(i))
disp ('the value of A/A* =')
disp (A(i))
i= i-1;
end
v= table(Ma,T,P,D,A)
disp ('Thanks for using our program')

 Accepted Answer

MAke the arrays as column dominant.
Ma(i,1) = input ('put the mach number');

More Answers (0)

Categories

Products

Release

R2019a

Asked:

on 11 Feb 2022

Commented:

on 11 Feb 2022

Community Treasure Hunt

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

Start Hunting!