Integration error while running a script in Matlab 2015

1 visualización (últimos 30 días)
Sadia
Sadia el 22 de Oct. de 2020
Comentada: Ameer Hamza el 24 de Oct. de 2020
I am using matlab 2015 and while running the following script file I am getting error: error in sym/subsref(line 771) R_title = ......
please help!
%%%%Script%%%%%
clear all; close all; clc
syms x g L R EIo rho Ao xc mR
psi=(x/L)^2
dpsi=diff(psi,x);
ddpsi=diff(dpsi,x);
xc=0.8*L
me=int((rho*Ao(1-(0.5*x)/L))*(psi)^2,x,0,L)+mR*subs(psi,x,xc);
ke=int(EIo*(1-(0.2*((x/L)^2)))*ddpsi^2,x,0,L)
kg=int(mR*g*(dpsi)^2,x,0,L)
Qv=int((pt*(x/L))*psi,x,0,L)

Respuesta aceptada

Ameer Hamza
Ameer Hamza el 22 de Oct. de 2020
Editada: Ameer Hamza el 22 de Oct. de 2020
me=int((rho*Ao*(1-(0.5*x)/L))*(psi)^2,x,0,L)+mR*subs(psi,x,xc);
% ^ insert * here. It is missing in your code
  4 comentarios
Sadia
Sadia el 24 de Oct. de 2020
Thank you Mr. Walter Roberson for such clear explanation. I think the person I asked to run this code in his computer has made pt as veriable but my matlab is still giving error. So i am thinking to install latest version.
Ameer Hamza
Ameer Hamza el 24 de Oct. de 2020
Have you defined pt as variable on your computer?

Iniciar sesión para comentar.

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