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

2 visualizaciones (últimos 30 días)
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);

Respuesta aceptada

Star Strider
Star Strider el 15 de Oct. de 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’).

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by