Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
solving an equation with many variables
I am learning Matlab now. I need to write a code to solve a nonlinear equation. That equation has 4 variables(say a, b, c and d). b,c and d depends on an array arr(i). I know the arr matrix. Now for each value of arr(i), I want to solve the equation and find a. I tried fsolve as well as fminsearch. fminsearch only gives the min value of the function but not 'a'. in fsolve, there should be only one variable but i have more variables, whose values I know. Now how to solve this equation. I need to differentiate between 'a' and other variables, but how. Keep in mind I have still learning matlab :). Hope to get a reply soon.
0 · ·