plot of equation of function
Mostrar comentarios más antiguos
k0=2*pi/632.8e-9;
n1=1.512;
n2=1.521;
n3=2.66;
n4=0.15+1i*3.5;
t2=2e-6;
m=0;
t3=1e-9:1e-6;
k1=@(x) k0*sqrt(n1^2-x^2);
k2=@(x) k0*sqrt(n2^2-x^2);
k3=@(x) k0*sqrt(n3^2-x^2);
k4=@(x) k0*sqrt(n4^2-x^2);
y=@(x,t3)-(k2)*t2+atan(k1/1i*k2)+atan((k3/k2)*tan(atan(k4/1i*k2)-k3*t3))+m*pi;
plot(t3,real(x))
plot(t3,imag(x)
8 comentarios
@shiv gaur You are continuously asking the same kind of questions, without completing/ commenting/ closing/ acknowledging the previous questions. Please don't do that. If the questions are same, discuss at the same question.
In the above code, t2 is not defined. x is not defined. What exactly you are trying to achieve? Ask a question so that people can understand to help you.
The above question, is simple. You have used anonymous function. Substitute x in k1, k2, k3, k4 and then use those values in the formula y with t's defined. Then use plot.
shiv gaur
el 25 de En. de 2022
shiv gaur
el 25 de En. de 2022
KSSV
el 25 de En. de 2022
If question is simple, that doesn't mean that we will do your work. You have to give some attempt and if you stuck you are welcome to ask a question.
shiv gaur
el 25 de En. de 2022
KSSV
el 25 de En. de 2022
If you want to find the root...use syms. Read about solve and syms.
shiv gaur
el 25 de En. de 2022
shiv gaur
el 25 de En. de 2022
Respuestas (0)
Categorías
Más información sobre Assumptions en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!