Community Profile

photo

SAHIL SAHOO


Last seen: Today Con actividad desde 2022

Statistics

  • Thankful Level 4

Ver insignias

Content Feed

Ver por

Pregunta


how can we decreases the length of the quiver? so that the tail get smaller but head shouldn't move.
X1 = [0.00246236309072327 0.00222132983511081 0.00176285733832268 0.00113182408271022 0.000390000000000000 -0.000389999999999999...

5 días hace | 1 respuesta | 0

1

respuesta

Pregunta


How can I add quiver in this according to their color?
%I want to add the quiver in the circular array, means that a color show a %particluar direction.

6 días hace | 1 respuesta | 0

1

respuesta

Pregunta


is there any one line code for writing in this way? if it's please give me a way to write this.
T = [ 0 0.0018 0 0.0012 0.0018 0 0.0025 0 0 0.0025 0 0.0015 0.0012 0 0.0015 0 ]

6 días hace | 1 respuesta | 0

1

respuesta

Pregunta


I couldn't understand why this program took a long time to run, can anyone help me to solve the problem so that the code can run fast
ti = 0; tf = 70E-5; tspan=[ti tf]; KC = 1; h = 1E-2; for j = 1:500 y0= [ (h)*rand(2,1); ((-3.14).*rand(1,1) + (3.14).*...

7 días hace | 1 respuesta | 0

1

respuesta

Pregunta


how can I write this in a compact form? can anyone suggest a single line code for it
yita_mn = [ 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1; 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0; 0 1 0 1 0 0 0 0 0 0...

10 días hace | 4 respuestas | 0

4

respuestas

Pregunta


how can I give arrow to a particular color in MATLAB?
I have this image I want to plot the arrow with the color bar, let suppose there is blue colour only so that denote this ...

11 días hace | 1 respuesta | 0

1

respuesta

Pregunta


How can I resolve this issue here, can anyone please help.
% ti = 0; % tf = 70E-5; tp = 1E-9; tspan= [0:1E-8:7E-5]./tp; k = 1E-6; k1 = k.*(tspan); h = 1E-2; h1 = 1; y0= [(h)*rand(...

13 días hace | 1 respuesta | 0

1

respuesta

Pregunta


I wrote this code but it takes a lot time to run even though it's not running.
clc; clear; ti = 0; tf = 70E-6; tspan=[ti tf]; k = 7E-6; h = 1E-2; for j = 1:100 y0= [(h)*rand(2,1); ((-3.14).*rand(...

15 días hace | 0 respuestas | 0

0

respuestas

Pregunta


I want to plot 100 graph for T vs abs(r) for different initial condition and therefore I wrote this code, but it doesn't plotting any graph please help mem in this code.
ti = 0; tf = 1E-8; tspan=[ti tf]; KC = 2E-6; for j = 1:100 y0= [(1e-2)*rand(2,1); ((-3.14).*rand(1,1) + (3.14).*rand(1,1));...

27 días hace | 1 respuesta | 0

1

respuesta

Pregunta


The Y(:,81) changes linearly with respect to T, I want to modify my code in such a way that when Y(:,81) reaches 2.5E-6 then after that it remains constant through out with T.
ti = 0; tf = 7E-12; tspan=[ti tf]; k = 1E-6; h = 1E-2; y0= [(h)*rand(2,1); ((-3.14).*rand(1,1) + (3.14).*rand(1,1)); ...

29 días hace | 1 respuesta | 0

1

respuesta

Pregunta


how can I modify my code so that whenever my Y axis reaches 2.5E-6 it get constant, means no more variation with x axis.
ti = 0; tf = 7E-12; tspan=[ti tf]; k = 1E-6; h = 1E-2; y0= [(h)*rand(2,1); ((-3.14).*rand(1,1) + (3.14).*rand(1,1)); ...

29 días hace | 1 respuesta | 0

1

respuesta

Pregunta


how can I plot in a such a way the x axis is in interval 10 10E2 10E3 10E4.
OrderParameter= [0.266 0.267 0.280 0.340]; Time = [10 1E2 1E3 1E4]; figure(1) plot(Time,OrderParameter,'linewidth',2) ylabel...

alrededor de 1 mes hace | 1 respuesta | 0

1

respuesta

Pregunta


I want to make the K as function of time but how can I do I have no idea, the K should evolve as Y evolve.
ti = 0; tf = 70E-8; tspan=[ti tf]; k = 1E-3; % I want to make this as the function of the time here, But how can I do % thi...

alrededor de 1 mes hace | 0 respuestas | 0

0

respuestas

Pregunta


I'm not getting any output here, can anyone please tell me what's the issue here?
h=0.01; time=0:h:1; a1(1)=rand(1,1); a2(1)=rand(1,1); g1(1)=rand(1,1); g2(1)=rand(1,1); o1(1)=((-3.14).*rand(1,1) + (3.14)...

alrededor de 1 mes hace | 1 respuesta | 0

1

respuesta

Pregunta


I couldn't understand the problem in this code.
ti = 0; tf = 70E-8; tspan=[ti tf]; k = (1E-3); KC = k; here I want to make the k and yita_mn time dependent. y0= [(1e-2)*r...

alrededor de 1 mes hace | 2 respuestas | 0

2

respuestas

Pregunta


how to add loop in this so that I can plot for 100 times and I will combine all in one plot.
ti = 0; tf = 70E-8; tspan=[ti tf]; KC = 1E-3; y0= [(1e-2)*rand(2,1); ((-3.14).*rand(1,1) + (3.14).*rand(1,1));       (1e-2)...

alrededor de 2 meses hace | 1 respuesta | 0

1

respuesta

Pregunta


I wrote a code to get the value of M less than 0.6, but How can I modify the code so that I can get the value of M which lie between 0.5 to 0.6 ?,
ti = 0; tf = 70E-8; tspan=[ti tf]; KC = 1E-3; for j = 1:100 y0= [(10e-2)*rand(2,1); ((-3.14).*rand(1,1) + (3.14).*rand(1,1)...

alrededor de 2 meses hace | 1 respuesta | 0

1

respuesta

Pregunta


how to display those value of M, which is only less than 1?
ti = 0; tf = 70E-8; tspan=[ti tf]; KC = 1E-4; for j = 1:100 y0= [(10e-2)*rand(2,1); ((-3.14).*rand(1,1) + (3.14).*rand(1,1)...

2 meses hace | 1 respuesta | 0

1

respuesta

Pregunta


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

4 meses hace | 3 respuestas | 0

3

respuestas

Pregunta


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

4 meses hace | 1 respuesta | 0

1

respuesta

Pregunta


I'm adding legend in the graph for the 4 plot in the same graph, please help me in this.
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...

4 meses hace | 1 respuesta | 0

1

respuesta

Pregunta


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

4 meses hace | 2 respuestas | 0

2

respuestas

Pregunta


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

4 meses hace | 1 respuesta | 0

1

respuesta

Pregunta


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

4 meses hace | 0 respuestas | 0

0

respuestas

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

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

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

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

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

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

4 meses hace | 1 respuesta | 0

1

respuesta

Cargar más