how i can correct my program
1 view (last 30 days)
Show older comments
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
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.
Answers (0)
See Also
Categories
Find more on File Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!