Error using plot Data must be numeric, datetime, duration or an array convertible to double. Error in prueba3 (line 12) plot(x,Vol);

2 ビュー (過去 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);

採用された回答

Star Strider
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 件)

カテゴリ

Help Center および File ExchangeAxis Labels についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by