How can i display the table results vertically?
Show older comments
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
More Answers (0)
Categories
Find more on Dictionaries 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!