how i can correct my program

1 view (last 30 days)
reza dehghan
reza dehghan on 21 Nov 2014
Commented: Image Analyst on 22 Nov 2014
Dear Sir/Madam
I attached two M-file to this letter. when I run the program with input data, like case 1, I can get resualt but when I put the third input data zero, like case 2, matlab give me the below message, please help me what am I doing? thank you
1)
MT=integral_thermalmoment_sub(0.006,0.002,0.002,25,30,1,0.3,35,40,300,1000,700,500,300,1,40,45)
MT =
-44177850149/14880348000
2)
MT=integral_thermalmoment_sub(0.006,0.004,0.000,25,30,1,0.3,35,40,300,1000,700,500,300,1,40,45)
Error using mupadmex
Error in MuPAD command: Division by zero. [_power]
Evaluating: symobj::trysubs
Error in sym/subs>mupadsubs (line 139)
G = mupadmex('symobj::fullsubs',F.s,X2,Y2);
Error in sym/subs (line 124)
G = mupadsubs(F,X,Y);
Error in integral_thermalmoment_sub (line 29)
MT=subs(MT,[h1,h2,h3,Ehc,Eh,nn,v,alpha_hc,alpha_h,TL,Tu,Tc,Tm,T0,H,kmc,kc],...
  3 Comments
reza dehghan
reza dehghan on 22 Nov 2014
I already run these programs with matlab version 12a and I didn,t have any problem, but now with use matlab 14a , I have this message from matlab.
Image Analyst
Image Analyst on 22 Nov 2014
Did you see Geoff's remark about attaching the files. Make it EASY for people to help you by giving them something to work with.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!