Prev: Speed up pdist
Next: Segmentation violation in CMEX-file ("Matlab has encountered an internal problem and needs to close")
From: babak yazdanpanah on 4 May 2010 03:19 hi, I had written a code that has a symbolic integration in it,and i want a result based on a symbolic variable 'n' so that i could use it in other parts of my code. the problem is that when i input more than the digit '4' , for' k',MATLAB sends me an answer that is useless for me or in another word i cant use that answer for the other calculations of my code.try it.here is that part of my code that i mentioned at the top: syms n tt g h=.01; k=input('please specify the volume fraction:'); KAm=17; KAc=29; KAn=(KAc-KAm)*((2*g+h)/(2*h))^k+KAm; o=int(1/KAn,g,-h/2,n); disp(o) please help me for God's sake...it is so urgent...please please please....
From: Steven Lord on 4 May 2010 10:07
"babak yazdanpanah" <babak.yazdanpanah(a)gmail.com> wrote in message news:hrohpa$7d9$1(a)fred.mathworks.com... > hi, > I had written a code that has a symbolic integration in it,and i want a > result based on a symbolic variable 'n' so that i could use it in other > parts of my code. > the problem is that when i input more than the digit '4' , for' k',MATLAB > sends me an answer that is useless for me or in another word i cant use > that answer for the other calculations of my code.try it.here is that > part of my code that i mentioned at the top: > syms n tt g h=.01; > k=input('please specify the volume fraction:'); > KAm=17; > KAc=29; > KAn=(KAc-KAm)*((2*g+h)/(2*h))^k+KAm; > o=int(1/KAn,g,-h/2,n); > disp(o) > please help me for God's sake...it is so urgent...please please please.... I tried this with k equal to 5 in MATLAB 7.10 (release R2010a) and it returned an answer. Since you haven't said what makes that answer "useless for me", there's nothing really we can do to help you. Perhaps if you explained that point, someone may be able to help you. -- Steve Lord slord(a)mathworks.com comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ |