Can't get the sqrt function to work correctly
Show older comments
Hi,
I'm not very good at matlab but I can't figure why my function isn't graphing correctly. I think it has to do with the sqrt() function but I can't tell what I'm doing wrong. I've graphed it on my TI-84 which graphs it correctly. It's a conversion of water column pressure to air velocity.
h = 0:1:25;
P = 67.35187338.*sqrt(h);
plot(P)
hold on
title ('Velocity vs. Water Column')
xlabel('Water Column in inches')
ylabel('Velocity (ft/s)')
Accepted Answer
More Answers (0)
Categories
Find more on Signal Analysis 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!