Community Profile

# shiv gaur

Last seen: Today Active since 2021

All

#### Content Feed

View by

Question

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; ...

alrededor de 9 horas ago | 1 answer | 0

### 1

Question

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...

2 días ago | 1 answer | 0

### 1

Question

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-...

2 días ago | 1 answer | 0

### 1

Question

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); ...

2 días ago | 0 answers | 0

### 0

Question

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) ...

2 días ago | 1 answer | 0

### 1

Question

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 días ago | 1 answer | 0

### 1

Question

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 días ago | 1 answer | 0

### 1

Question

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; ...

4 días ago | 0 answers | 0

### 0

Question

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...

6 días ago | 0 answers | 0

### 0

Question

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(...

14 días ago | 0 answers | 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...

15 días ago | 0

Question

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; ...

15 días ago | 2 answers | 0

### 2

Question

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...

15 días ago | 1 answer | 0

### 1

Question

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...

16 días ago | 1 answer | 0

### 1

Question

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...

18 días ago | 0 answers | 0

### 0

Question

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

19 días ago | 1 answer | 0

### 1

Question

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 ...

19 días ago | 2 answers | 0

### 2

Question

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...

20 días ago | 0 answers | 0

### 0

Question

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...

20 días ago | 0 answers | 0

### 0

Question

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:...

20 días ago | 0 answers | 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...

20 días ago | 0

Question

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...

20 días ago | 0 answers | 0

### 0

plot is showing blank
pl help for ploting

20 días ago | 0

Question

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...

20 días ago | 2 answers | 0

### 2

Question

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...

20 días ago | 1 answer | 0

### 1

Question

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; ...

21 días ago | 0 answers | 0

### 0

program is not working
this is the answer function shiv5 %K0= (2*pi/1530)*1e6:(2*pi/10)*1e6:(2*pi/1630)*1e6; K0= linspace((2*pi/1530)*1e6,(2*pi/16...

21 días ago | 0

| accepted

Question

program is not working
function shiv5 K0= (2*pi/1530)*1e6:(2*pi/10)*1e6:(2*pi/1630)*1e6; for j=1:numel(K0) k0 = K0(j); p0 = 0.5; ...

21 días ago | 2 answers | 0

### 2

Question

solve the equation reflectivity vs wavenumber plot
function kps5 K0 = 1550e-6:1e-6:1600e-6; for j=1:numel(K0) k3 = K0(j); p0 = 0.5; p1 = 1; p2 = 1.5; ...

24 días ago | 0 answers | 0