Solving Implicit function in MATLAB without for loop -
i experiencing problem , guys might of me. in matlab, trying solve implicit function, see following: cp = cpi / ( sqrt(1 - m^2) + (m^2 / (sqrt(1-m^2))) * cpi/2 ) here, know values of both m , cp , want know value of cpi. also, due computational time considerations, avoid using loops in approach. finally, know not hard solve, example 1 can use ''golden bi-section'' method find answer, not know how code in matlab. know, or has piece of code able solve cpi? thank guys! appreciated help this quite done using fzero . if move cp part on rhs, , try find root using fzero , cpi variable, can solve this: m = 0.4; cp = 3; f = @(cpi) cp - (cpi / ( sqrt(1 - m^2) + (m^2 / (sqrt(1-m^2))) * cpi/2 )); fzero(f,0) ans = 3.7250 of course, don't need assign anonymous function first, in opinion, makes easier read.