Ld= 0.8194 %constant
% cos^2(K*L)+ Ld*K*sin(K*L)cos(K*L)=2.2 two non linear equations
% cos^2(K*L)=0.299
% Ld*cos^2(K*L)+sin(K*L)cos(K*L)/K=0.262
cos^2(K*L)+ Ld*K*sin(K*L)cos(K*L)-2.2=0cos^2(K*L)-0.299=0Ld*cos^2(K*L)+(sin(K*L)cos(K*L))/K-0.262=0function F=calib(K,L)F(1)=cos(K*L)^2+ Ld*K*sin(K*L)*cos(K*L)-2.2;F(2)=cos(K*L)^2-0.299;F(3)=Ld*cos^2(K*L)+(sin(K*L)cos(K*L))/K-0.262;fun = @calib (K,L);initial_val=[2.73,0.6] % initial value of K and L respectively
x = fsolve(fun,initial_val);
MATLAB: Hello, I want to solve system of non linear equations using fsolve. There are thre equations and two unknowns K and L. looking at the code, please advice how to best do this. Also please advice if this is the best way or there is an alternate optio
non-linear equations
Related Question
- Dear All, I am new to MATLAb GUI and want to create one. My program should work in the following sequence. 1) Select option of polarity from a pop-up menu (total two options are available) 2) load file according to polarity selected 3) execute part
- Changing from ‘bar’ command to ‘plot’ command.
- Struct to non struct error in integral calc
Best Answer