How do I get the table to have the same rows.
Show older comments
Try to display data in a table but keep getting
Error using table
All table variables must have the same number of rows.
Here the code
A=50*sqrt(2);
Pave=(A^2)/2;
m=(0:.05:1.25)';
m1=m.^2
Pc=Pave/(1+(m1./2)+(m1./2))
USB=((m.^2).*Pc)./2;
LSB=((m.^2).*Pc)./2;
T = table(m,Pc,USB,LSB)
1 Comment
Walter Roberson
on 25 Oct 2022
m1 is not defined in the code
Accepted Answer
More Answers (0)
Categories
Find more on Tables 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!