- make a function, or function handle of A
- define an objective function (the equation that should be zero. You can use Matlabs "integral" function.
- you need solve solve the objective function. You can use fsolve, or alternatively look an algorithm using Newton's method on file exhange (for example this link might work: https://uk.mathworks.com/matlabcentral/fileexchange/28227-newton-s-method)
Find the value from the integral equation
3 views (last 30 days)
Show older comments
Commented: Arad on 7 Feb 2023
I have the function A(e) as:
where the w is the variable and and m0 is the unknown value which should to be obtained by:
I need to obtain the m0 parameter by solving the above equation.
Sargondjani on 7 Feb 2023
I'm just going to give hints:
This should get you started.
Torsten on 7 Feb 2023
fun = @(w,m0) (cos(4*w).*cos(4*w)+1)./(1+exp(w-m0));
m0sol = fsolve(@(m0)integral(@(w)fun(w,m0),-20,20)-2,1)
Dyuman Joshi on 7 Feb 2023
Edited: Dyuman Joshi on 7 Feb 2023
You can solve it symbollically (This requires symbolic toolbox)
syms w m0
%As we can see here, we don't get the numeric value of the integral
%so we use vpa to approximate the value
Find more on Calculus in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!