MATLAB: How to solve an equation which has another function in it equationsolve Hi everyone, I am trying to solve an equation like 4*x+g(x)=18 where g(x)=2*x+6 meaning that g(x) changes with iterations. I am trying to use solve function, couldn't figure it out. thanks in advance Best Answer Not really sure what you want.Try this:g = @(x) 2.*x + 6; f = @(x) 4.*x + g(x) - 18; s = fzero(f, 1) Related SolutionsMATLAB: How to numerically evaluate an integral that has symbols in it You cannot do that. integral() requires purely numeric values to work with.You will need to convert the integral to an approximation such as by using taylor or series representation. MATLAB: How calculated it logspace(A, B, C) is 10.^linspace(A, B, C)linspace(1,5,4) is 1, 7/3, 11/3, 5, and the output you see is 10 to the power of those. Related QuestionHow to plot itHow to plot object if one has area and centroid of itHow do i use eval function when the sentence has apostrophe (‘) in it
Best Answer