
Re: How to solve very complex equations in matlab?
Posted:
Jul 4, 2013 4:02 AM


> I have just taken one more term. Actually > sigma(f1*f2)=0,sigma(f1*f3)=0,sigma(f1*f4)=0. > And I have to solve them. TO use 'fsolve', I have to > give an initial value right? With different initial > values, I am getting different solutions. So, I am > trying with solve command. Most importantly can you > explain me that summation part in detail? Because I > must be adding functions in the case of summation. > > > Message was edited by: Srinath
Don't use the "solve" command  I doubt that you will get an explicit expression for x,y and z. If you use "fsolve" instead, you can do the summation within a loop: sum1=0; sum2=0; sum3=0; For j=1:1000 f1=func_1(x,y,z,a(j),b(j)); f2=func_2(x,y,z,a(j),b(j)); f3=func_3(x,y,z,a(j),b(j)); f4=func_4(x,y,z,a(j),b(j)); sum1=sum1+f1*f2; sum2=sum2+f1*f3; sum3=sum3+f1*f4 end
Best wishes Torsten.

