Not able to get plot

2 views (last 30 days)
Anshuman S
Anshuman S on 7 Jul 2019
Answered: infinity on 7 Jul 2019
x = linspace(0, 0.3,0.01);
y = ((384*0.5*((0.15).^(3/2)))./ (x.^(3/2))).^(1/2); %cr
figure
plot(x, y)

Accepted Answer

infinity
infinity on 7 Jul 2019
Hello,
You used the linespace function with wrong parameter. Here is instruction of linespace function:
linspace(X1, X2, N) generates N points between X1 and X2.
To get properly result, you change 0.01 by a proper number of intervals from 0 to 0.3.

More Answers (0)

Categories

Find more on Visual Exploration in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!