solving an equation with many variables - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

solving an equation with many variables

sivaram158sivaram158 Posts: 1Member
Hey guys!!
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.
Sign In or Register to comment.