|
i am new, trying to figure out MATLAB and is unable to solve this problem. I have d following given 8 equations and from them need to find a relation between r and nf and hence plot with nf as x-axis and r as y-axis. The problem is whatever I am trying I always get r as empty set and matlab displays the warning 'Explicit solution could not be found'.
what am i doing wrong?
thanks for all the help in advance
clear;
clc;
syms k sigc L neff lm lmD Sneff N sigc nf r;
eq1='k=2/L';
eq8='k=pi*Sneff/lm';
eq2='N=10000';
eq3='lmD=2*neff*N/L';
eq4='sigc=(2*pi*neff*((1/lm)-(1/lmD)))+(2*pi*Sneff/lm)';
eq5='nf=lm/((1+(Sneff/neff))*lmD)';
eq6='nf=1/(1+((sigc*L)/(pi*N)))';
eq7='r=((sinh(sqrt(k^2-sigc^2)*L))^2)/(((cosh(sqrt(k^2-sigc^2)*L))^2)-((sigc^2)/k^2))';
r=solve(eq1,eq2,eq3,eq4,eq5,eq6,eq7,eq8,nf);
nf=[.999:.0001:1.0005];
plot(nf,r);
|