Community Profile # SAHIL SAHOO

Last seen: Today Active since 2022

#### Statistics

• #### Content Feed

View by

Question

i couldn't understand the problem in it
I think the code is correct but some lsit mistake please help me to find it. ti = 0; tf = 1E-3; tspan=[ti tf]; y0 = [0.8;0.7...

6 hours ago | 2 answers | 0

### 2

Question

why error occurring in the program, i already define the z1 correctly i think?
clear P = 12.67; A = 0.1; tc = 230E-6; tp = 5.4E-9; h = 10E-2; w1 = 10E5; w2 = 14E5; w3 = 12E5; w4 = 6E5; w5 = 16E5;...

14 days ago | 1 answer | 0

### 1

Question

I couldn't plot the function because it seems vector length isn't same, please help me in it.
clear tc = 30E-9; P = 0.05; k= 3E-3; h = 10E-2; T =10^3; time = 0:0.1E-4:4E-4; a= 3; func1 = @(z1,x1) (P - z1 - ...

21 days ago | 1 answer | 0

### 1

Question

generation of random no.
y0=[0; 0; 0; 0; 0; sqrt(0.05); sqrt(0.05); sqrt(0.05) ; sqrt(0.05); sqrt(0.05); 0; 0; 0; 0; 0; 0; 0; 0; 0; 0] can it's possibpl...

24 days ago | 1 answer | 0

### 1

Question

is my program for solving differential equation is correct or not?
to solve this couple differential equation i wrote a program, Z1....Z5 is y(1)...y(5), X1...X5 is y(6).......y(10) and Φ1......

25 days ago | 0 answers | 0

### 0

Question

how to generate the no. in increasing order but with decreasing difference between the no.?
eg:- i want to generate the no. from 10 to 40 but i want the no. will generate like 10 20 28 34 40. in this the no. is genera...

27 days ago | 1 answer | 0

### 1

Question

I couldn't understand the problem in it? and I did't know where I should put the "o" ?
clc ti = 0; tf = 1E-3; tspan=[ti tf]; P = 1.27; a = 0.1; tc = 230E-6; tp = 5.4E-9; o = rand(1,5)*100E3; k = 1E-3; k1 =...

27 days ago | 1 answer | 0

### 1

Question

can I generate random no. from 0 to 10E5, but the condition is ?
I want to generate random no. between 0 to 100E3 but the no. will be in increasing order rand(1,5) like this i want to genera...

28 days ago | 1 answer | 0

### 1

Question

there is an error in describing the loop, please help me to resolve this one.
clear x = linspace (-1,1,256); y = linspace (-1,1,256); [X,Y] = meshgrid(x,y); r = sqrt(X.^2 + Y.^2); z= 0; w = 100; E0 =...

29 days ago | 1 answer | 0

### 1

Question

why the image is not display in the output?
lambda=500e-9; k=(2*pi)/lambda; a=1e-6; Io=100.0; R=1.0e-3; Y=(-0.25e-2:1e-5:0.25e-2); Z=Y ; I(1:length(Y),1:length(Z)...

29 days ago | 1 answer | 0

### 1

Question

my rand operation is applied correctly, I think but it's not working.
clear ti = 0; tf = 10E-3; tspan=[ti tf]; y0=[1; 1; 0; 1; 1; 0; 1; 1; 0; 1; 1; 0; 1; 1; 0; 0; 0 ; 0; 0; 0]*10E-4; yita_mn = ...

1 month ago | 1 answer | 0

### 1

Question

what's the problem in my loop I couldn't understand in this
x=linspace(-1,1,256); [X,Y]=meshgrid(x,x); r=sqrt(X.^2+Y.^2); R=0.05; t = 0.3; l= 0:36:360; for i = 1:length(l) h(...

1 month ago | 1 answer | 0

### 1

Question

is there any method to apply the for loop in this, I caN't see any pattern please help in this
ti = 0; tf = 10E-2; tspan=[ti tf]; KC = 1E-3; y0= ones(1,80)*1E-3; yita_mn = [ 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1...

1 month ago | 1 answer | 0

### 1

Question

did I plot the "r" factor correctly in it?
ti = 0; tf = 1E-4; tspan=[ti tf]; y0=[1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 0; 0; 0; 0; 0]; N = 5; tp = 5.4E-9; [T,Y]= ode45(@(t,y...

1 month ago | 1 answer | 0

### 1

Question

in this I apply a loop so that I will have different value of Y(:,11) for the different value of initial condition for Y(:,11), what is correct algorithm for this??
please check this code is it right or worng? and please lemme know he correct program for this. ti = 0; tf = 1E-3; tspan=[ti ...

1 month ago | 1 answer | 0

### 1

Question

why the plot is not coming, is my plot function is wrong? please find the defect in the code.
ti = 0; tf = 1E-3; tspan=[ti tf]; y0=[1; 1; 0; 1; 1; 0; 1; 1; 0; 1; 1; 0; 1; 1; 0]*10E-2; yita_mn = [0 1 0 0 1; 1 0 1 0 0; 0...

2 months ago | 1 answer | 0

### 1

Question

why I'm getting an error of index exceeds the number of element? how to fix it?
ti = 0; tf = 2.50E-9; tspan=[ti tf]; y0=[0; 0; 0]; yita_mn = 0.01; N = 5; [T,Y]= ode45(@(t,y) rate_eq(t,y,yita_mn,N),tspan...

2 months ago | 0 answers | 0

### 0

Question

using "for loop" to solve 5 different coupled differential equation.
syms A(t) O(t) a = 0.6; n = 0.05; tc = 10E-9; r = 1.5; F = 1; N = 5; for i = 1:N ode1 = diff(A(i)) == (-1/(2*tc)).*(1 ...

2 months ago | 0 answers | 0

### 0

Question

can I apply a for loop inside the function so that I can make my program short?
ti = 0; tf = 10E-6; tspan = [ti tf]; a = 0.6; n = 0.05; tc = 10E-9; r = 1.5; F = 10; f = @(t,y) [ ...

2 months ago | 1 answer | 0

### 1

Question

what's the problem in defining the function in for loop?
clc ti = 0; %inital time tf = 70E-9;% final time tspan=[ti tf]; tp =1E-12; T = 2E3; p = 0.05; k = (0.62).*10^(4); c = ...

2 months ago | 1 answer | 0

### 1

Question

there are two coupled differential equation, I try to solve that differential for the i = 1 to 5, but i think my for loop is incorrect.
these are the differential equation I want to solve where the i = 1 to 5 I want to solve these differential equation but mayb...

2 months ago | 1 answer | 0

### 1

Question

what the time span do in ode45?
[time,Y] = ode45(f,tspan./tp,[sqrt(0.05);sqrt(0.05);0;0;0.1]); in this, is it means that we differentiaite the y by "t/tp" ?

2 months ago | 1 answer | 0

### 1

Question

I want to solve this couple differential where the dot represent the derivative with respect to t/tp, where tp = 30E-9, is my code for solving this is correct? ?
T = 2E3 i made this code clc ti = 0; %inital time tf = 70E-9;% final time tspan=[ti tf]; T = 2000; p = 0.05; n = 1E...

2 months ago | 1 answer | 0

### 1

Question

why this function is not plotting?
a =5; T = 2E3; Z = linspace(0,0.1,0.01); U = (1+2.*Z)./(2.*a.*T); plot(Z,U)

2 months ago | 1 answer | 0

### 1

Question

the program is plotted once, then showing error, is something error in program
format long a = 0; b = 4; h = 0.1; k = 0.033; L = 0.5; s = 0.1; tc = 70E-9; n = (b-a)/h ; t = a + (0:n)*h; ...

2 months ago | 1 answer | 0

### 1

Question

solving the equation using rk-4 method, but couldn't get the right output, last time I forget to add the program please check this one.
i want to solve this, where σ = 0.1, L0 = 0.5, k= 0.01, tc = 70E-9 format long a = 0; b = 4; h = 0.1; k = 0.01; % critic...

2 months ago | 0 answers | 0

### 0

Question

solving a differential equation using ode45 but the problem is i didn't get what i expected.
i want to solve this, where σ = 0.1, L0 = 0.5, k= 0.01, tc = 70E-9 and U(Φ0) is so that the phase difference Φ0 vs t gr...

2 months ago | 1 answer | 0

### 1

Question

is the "for loop" is wrong? what can be the solution?
clc ti = 0; tf = 100E-4; tspan=[ti tf]; o = 1E6; tc = 70E-9; tf = 240E-6; a1 = 0.02; a2 = 0.02; P1 = 1; P2 = 1; ...

2 months ago | 2 answers | 0

### 2

Question

there is no output, it's keep running but no output, why so?
clc %defining constant ti = 0; %inital time tf = 100E-4;% final time tspan=[ti tf]; o = 1E6; % detuning frequency tc = 70...

2 months ago | 1 answer | 0