Pregunta


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

más de 1 año hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 1 año hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 1 año hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 1 año hace | 1 respuesta | 0

1

respuesta

Pregunta


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.

más de 1 año hace | 0 respuestas | 0

0

respuestas

Pregunta


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

más de 1 año hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 1 año hace | 2 respuestas | 0

2

respuestas

Pregunta


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

más de 1 año hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 1 año hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 1 año hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 1 año hace | 0 respuestas | 0

0

respuestas

Pregunta


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

más de 1 año hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 1 año hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 1 año hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 1 año hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 1 año hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 1 año hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 1 año hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 1 año hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 1 año hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 1 año hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 1 año hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 1 año hace | 0 respuestas | 0

0

respuestas

Pregunta


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

más de 1 año hace | 0 respuestas | 0

0

respuestas

Pregunta


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

más de 1 año hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 1 año hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 1 año hace | 1 respuesta | 0

1

respuesta

Pregunta


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" ?

más de 1 año hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 1 año hace | 1 respuesta | 0

1

respuesta

Pregunta


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)

más de 1 año hace | 1 respuesta | 0

1

respuesta

Cargar más