Community Profile

# SAHIL SAHOO

Last seen: 26 Tage vor Aktiv seit 2022

#### Statistics

Abzeichen anzeigen

#### Content Feed

Anzeigen nach

Frage

I'm not getting the correct result for the u, i want it in degree but the ans is not right, the plot is not smooth.
ni = 1; nt = 1.5; t = 0:0.1:1.57; oi = rad2deg(t); u = asind((nt.*sin(oi))./ni); ot = abs(u); r1 = -(sind(oi-ot)./sind(oi+...

etwa ein Monat vor | 3 Antworten | 0

### 3

Antworten

Frage

how to rid of this warning and get correct solution?
ti = 0; tf = 1E-7; tspan=[ti tf]; k = 5E-3; h = 10E-2; y0= [(h)*rand(2,1); ((-3.14).*rand(1,1) + (3.14).*rand(1,1)); ...

etwa ein Monat vor | 1 Antwort | 0

### 1

Antwort

Frage

ti = 0; tf = 1E-3; tspan=[ti tf]; y0 = [(10E-6).*rand(10,1);((-3.14).*rand(4,1) + (3.14).*rand(4,1))]; % intial conditions o...

etwa 2 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

I gave the initial condition correctly still the program not working.
ti = 0; tf = 70E-8; tspan=[ti tf]; k = (0.62).*10^(-5); % y0= [(10e-6)*rand(2,1); ((-3.14).*rand(1,1) + (3.14).*rand(1,1)); ...

etwa 2 Monate vor | 2 Antworten | 0

### 2

Antworten

Frage

i want to add a loop so that it works like this.
ti = 0; tf = 1E-3; tspan=[ti tf]; KC = 4E-3; y0= [ (10e-6)*rand(2,1); ((-3.14).*rand(1,1) + (3.14).*rand(1,1)); (10e-...

etwa 2 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

how to mark a given point on the graph?
ti = 0; tf = 1E-3; tspan=[ti tf]; KC = 4E-3; y0= [ (10e-6)*rand(2,1); ((-3.14).*rand(1,1) + (3.14).*rand(1,1)); (10e-...

etwa 2 Monate vor | 0 Antworten | 0

### 0

Antworten

Frage

how to write equation in matlab for E(t-tp) where the E is E(t) but introduce a tp delay time.
ti = 0; tf = 2.50E-9; tspan=[ti tf]; y0=[0; 0]; [T,Y]= ode45(@(t,y) rate_eq(t,y),tspan,y0); subplot 211 plot(T,Y(:,1)...

etwa 2 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

plotting this program is causing a problem how to fix it?
clear k = 1E-3; [y(4),y(5),y(6)] = meshgrid(-4:0.25:4,-4:0.25:4,-4:0.25:4); dy(1) = (P - y(1).*((abs(y(4)))^2 +1))./tf; dy...

etwa 2 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

I tried plot a 3d animated but it doesn't work.
ti = 0; tf = 1E-2; tspan=[ti tf]; y0 = [(10E-6).*rand(6,1);((-3.14).*rand(2,1) + (3.14).*rand(2,1))]; % intial conditions o ...

etwa 2 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

how to add "drawnow" function in it?
ti = 0; tf = 1E-2; tspan=[ti tf]; y0 = [(10E-6).*rand(6,1);((-3.14).*rand(2,1) + (3.14).*rand(2,1))]; % intial conditions o ...

etwa 2 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

I'm asking a math question if anyone can help please let me know, this is not a MATLAB problem just a mat problem, sorry for inconvenience
is this graph by any how a attractor, I'm not expert in this but this show some kind of synchronised chaos.

etwa 2 Monate vor | 0 Antworten | 0

### 0

Antworten

Frage

generating random no. between -pi to pi
I want to generate 5 random no. beteeen -pi to pi, by using the rand function, I use the rand function but couldn't understant t...

etwa 2 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

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

2 Monate vor | 2 Antworten | 0

### 2

Antworten

Frage

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

2 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

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

3 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

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

3 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

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

3 Monate vor | 0 Antworten | 0

### 0

Antworten

Frage

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

3 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

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

3 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

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

3 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

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

3 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

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

3 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

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

3 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

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

3 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

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

3 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

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

3 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

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

3 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

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

4 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

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

4 Monate vor | 0 Antworten | 0

### 0

Antworten

Frage

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

4 Monate vor | 0 Antworten | 0

Antworten