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

10 vues (au cours des 30 derniers jours)
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);

Réponse acceptée

Star Strider
Star Strider le 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’).

Plus de réponses (0)

Catégories

En savoir plus sur Mathematics dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by