Error using plot Data must be numeric, datetime, duration or an array convertible to double. Error in prueba3 (line 12) plot(x,Vol);
2 views (last 30 days)
Show older comments
César Arturo Niño Carmona
on 14 Oct 2019
Answered: Star Strider
on 15 Oct 2019
I need to plot Vol, = 50*x^2*((6*cos(8*x))/625 - (24*x*sin(8*x))/625 + 3/250)
Tell me What's wrong? Please !
clear;
clc;
Ro=1; G=981; A1=100; A2=150; A3=125;
CC = input ('Ingrese la COMPLIANCIA (cm3/cmH2O)DEL PULMON C = ');
C= CC/981;
syms x;
Q = x+0.1*sin(8*x);
X=Q*x*(A1+A2-A3)/(A1*A3)-Q*x*A1*(A2-A3)/(C*Ro*G*A1*A3);
Acel=diff(X,2);
Vol = Acel.*(x.^2/2)*((A1*A3)/(A1+A2-A3));x = linspace(0,3,500);
disp(Vol);
plot(x,Vol);
0 Comments
Accepted Answer
Star Strider
on 15 Oct 2019
I have no idea what you want ‘x’ to be.
Try this:
figure
fplot(Vol, [0 C]);
Make appropriate changes to define ‘x’ (defined here to go from 0 to ‘C’).
0 Comments
More Answers (0)
See Also
Categories
Find more on Axis Labels 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!