Error using plot Data must be numeric, datetime, duration or an array convertible to double. Error in prueba3 (line 12) plot(x,Vol);
10 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Star Strider
2019-10-15
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 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!