提问


loop in function inside
kk1 function kk1 clc;clear;close all; l=633; c = 1; k0=2*pi/l; ea=1.39; da=1:300; theta=1:70; y=zeros(length(...

3 years 前 | 1 个回答 | 0

1

个回答

提问


plot the graph of function
l=633; k0=2*pi/l; ea=1.39; da=1:300; theta=1:70; y=zeros(length(theta),length(da)); np=1.5; x=(2*pi/l)*np*s...

3 years 前 | 1 个回答 | 0

1

个回答

提问


from running code find diff plot vs variable
function mm1 clear all close all n=linspace(1.43,1.50,10); D1= linspace(1e-9,3e-7,15); P=zeros(numel(n),numel(D1)); for ...

3 years 前 | 1 个回答 | 0

1

个回答

提问


partial diff with out syms plot
theta=1:10; a=1:10; N=cos(theta); pl plot df/dna vs a also plot df/dN vs a function y=f(N,na,nf,a,b) nf=2; y=exp(i...

3 years 前 | 0 个回答 | 0

0

个回答

提问


Vectors must be the same length.
theta=30:0.01:50; lambda=633; k0=2*pi/lambda; e1=1.50^2;e3=1.33^2;e2=(0.12+1i*3.5)^2; n1=1.50;n3=1.33;n2=0.12+1i*3.433; ...

3 years 前 | 1 个回答 | 0

1

个回答

提问


program is not working
lambda=632.8;%wavelength in vacuum in nm k0=2*pi/lambda; e1=1.30^2;e2=(0.15+1i*4)^2;e3=3.9^2;e4=1.33^2;e5=1.36;na=1.368; n1...

3 years 前 | 1 个回答 | 0

1

个回答

提问


run the program in matlab
% n1=1.512; % n2=1.521; % n3=4.1-1i*0.211; % % n4=1; % lambda = 633; % k0 = (2*pi)/lambda; % t2 = 50; % t3=0; T3=1e-...

3 years 前 | 1 个回答 | 0

1

个回答

提问


plot of equation of function
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); ...

3 years 前 | 0 个回答 | 0

0

个回答

提问


how to differentiate and plot of this function
k1= @(x) sqrt(1-x^2); k2=@(x) sqrt(2-x^2); k3=@(x) sqrt(3-x^2); k4=@(x) sqrt(4-x^2); r1=@(x) (k1-k2)/(k1+k2); r2=@(x) ...

3 years 前 | 1 个回答 | 0

1

个回答

提问


how to write delta function
how to write delta function in matlab Write delta function in matlab Y=f(x) For a=1:10 m=x*exp(-x^2)+a^2 fm=integrate(f,0...

3 years 前 | 1 个回答 | 0

1

个回答

提问


Index in position 2 exceeds array bounds. Index must not exceed 1. Error in metal6 (line 60) M4=[m411(1,j),m412(1,j);m421(1,j),m422(1,j)];
theta=13:0.1:90; lambda=1550;%wavelength in vacuum in nm eps1=2.28;eps2=1.87;eps3=2.28;eps4=1.87;eps5=2.28; d=[600,400,600,60...

3 years 前 | 1 个回答 | 0

1

个回答

提问


Hhow to enhance smoothness of graph?
function metal1 T2=1e-9:1e-10:1e-6; for j=1:numel(T2) t2 = T2(j); p0 = 0.5; p1 = 1; p2 = 1.5; ...

3 years 前 | 0 个回答 | 0

0

个回答

提问


derivative plot of function
function y=f(p,t) ea=2.25; em=0.15+1i*3.2; theta=1:15; x=1.5*sin(theta); ka=sqrt(ea-x.^2); km=sqrt(em-x.^2); y=2.*ata...

3 years 前 | 0 个回答 | 0

0

个回答

提问


plot the graph of mulivariable
theta = linspace(0,2*pi,100); na= linspace(1,20,100); da= linspace(0,5,100); figure(1) [x,y]=f(theta,na,da); dx = gradient(...

3 years 前 | 0 个回答 | 0

0

个回答

已回答
root finding and plot of graph
function metal4 %T2 = 1e-9:1e-9:1e-6; %T3=linspace(1e-9,1e-7,35); T3=1e-9:1e-8:1e-7; for j=1:numel(T3) t3 = T3(j...

3 years 前 | 0

提问


root finding and plot of graph
function y=f(x,t3) k0=(2*pi/0.6328)*1e6; t2=1.5e-6; n1=1.512;n2=1.521;n3=4.1-1i*0.211; n4=1; ...

3 years 前 | 2 个回答 | 0

2

个回答

提问


how to plot graph using multiple variable
theta = 10 to 80; da=1e-9:3e-7; p=ds/da /ds/dx na have three value 1.31 1.32 1.32 we have to plot(da,p) pl help h...

3 years 前 | 1 个回答 | 0

1

个回答

提问


program is not showing graph
function metal3 theta1=linspace(10,70,20); %T3=1e-9:1e-9:1e-6; for j=1:numel(theta1) theta=theta1(j); p...

3 years 前 | 1 个回答 | 0

1

个回答

提问


loop in integral plot
function y=f(theta) L=10; n1=1-l^2/2; nc=1; Neff(theta)=L/tan(theta); y=((Neff(theta)*n1^2*sin(theta)*cos(theta)/(1...

3 years 前 | 0 个回答 | 0

0

个回答

提问


how to calculate a difference of function with any parameter
function y=f(x) for i=10 y=i*sin(x) end end calculate the change in y/change in x vs i

3 years 前 | 1 个回答 | 0

1

个回答

提问


how to use loop in function to plot
function y=f(x) np=1.5; a=1.2; b=3; x=np*sin(theta); k1=sqrt(a-x^2); k2=ksqrt(b-x^2); y=(k1-k2)/(k1+k2); end ...

3 years 前 | 2 个回答 | 0

2

个回答

提问


use of arrays in variable
function y=f(kx) l=6330*(10)^(-10); k0=2*pi/l; nc=1.33; ec=nc^2; na=1.43; ea=na^2; nf=1.59; ef=nf^2; nm=0.064+1i*4...

3 years 前 | 0 个回答 | 0

0

个回答

提问


program of two variable df/dna/df/dx vs da value
function shiv8 clear all close all na=1.432; n=linspace(1.43,1.50,10) D1= linspace(1e-9,3e-7,15); for j=1:numel(D1) fo...

3 years 前 | 0 个回答 | 0

0

个回答

提问


plot the variable change
pl plot dkx/dna=change in kx/change in na vs da value any one pl help function shiv7 %K0= (2*pi/1530)*1e6:(2*pi/10)*1e6:...

3 years 前 | 0 个回答 | 0

0

个回答

已回答
plot is showing blank
now it is working function shiv7 %K0= (2*pi/1530)*1e6:(2*pi/10)*1e6:(2*pi/1630)*1e6; %K0= linspace((2*pi/1530)*1e6,(2*pi/16...

3 years 前 | 0

提问


eigen value is not showing
k0=2*pi/l; nc=1.33; ec=nc^2; na=1.43; ea=na^2; nf=1.59; ef=nf^2; nm=0.064+1i*4; em=nm^2; ns=1.495; es=ns^2; df=0.5e-6...

3 years 前 | 0 个回答 | 0

0

个回答

已回答
plot is showing blank
pl help for ploting

3 years 前 | 0

提问


plot is showing blank
function shiv7 %K0= (2*pi/1530)*1e6:(2*pi/10)*1e6:(2*pi/1630)*1e6; %K0= linspace((2*pi/1530)*1e6,(2*pi/1630)*1e6,5); D1=li...

3 years 前 | 2 个回答 | 0

2

个回答

提问


Index exceeds the number of array elements. Index must not exceed 1. Error in shiv7 (line 7) da = D(j);
function shiv7 %K0= (2*pi/1530)*1e6:(2*pi/10)*1e6:(2*pi/1630)*1e6; %K0= linspace((2*pi/1530)*1e6,(2*pi/1630)*1e6,5); D=lin...

3 years 前 | 1 个回答 | 0

1

个回答

提问


plot the graph program
program l=6330*(10)^(-10); k0=2*pi/l; np=1.50; n0=1.3707; n1=1.3; n2=1.59; n3=1.45; n4=3.46; na=1.36; t1=2.10e-6; ...

3 years 前 | 0 个回答 | 0

0

个回答

加载更多