Feeds
질문
Displaying two different variable legends in the same figure
I am trying to display two legends in the same figure.Here, z1,z2 and z3 all are variables.Please suggest. Suppose z1=0.4, ...
대략 6년 전 | 답변 수: 2 | 0
2
답변질문
I want to find particular values of t at which y becomes 2 (by writing some commands in code itself). Can I extract such values of t as a vector?
clear clc; N=2000; % Number of time stpes dt=0.05; %Time step %Initialize y=zeros(N,1); t=zeros(N,1); ...
6년 초과 전 | 답변 수: 2 | 0
2
답변질문
Applying higher value of input parameter for some interval input variable in ODE.
N=10; k=zeros(N,1); r=zeros(N,1); t=zeros(N,1); k1=1;k(1)=1;t(1)=0;dt=0.05; for i=2:N t(i)=t(i-1)+dt; ...
6년 초과 전 | 답변 수: 0 | 0
0
답변질문
How to find out particular value of t (j) at which y(j) is equal to some value lets say 4 (without looking graph) ? Thanks.
N=100; dt=0.05; k=2; t=zeros(N,1); y=zeros(N,1); y(1)=2;t(1)=0; for j=1:N-1 t(j+1)=t(j)+dt; y(...
6년 초과 전 | 답변 수: 1 | 0
1
답변질문
If y(j) is less than some number (say 3) then I want to use higher value of k (say 4) but in the range of 5th iteration before and after y becomes 3. For example in 40th iteration y becomes 3. I want to use k=7 from 35th to 45th iteration. Pls help.
N=100; dt=0.05; k=2; t=zeros(N,1); y=zeros(N,1); y(1)=2;t(1)=0; for j=1:N-1 t(j+1)=t(j)+dt; y(...
6년 초과 전 | 답변 수: 0 | 0
0
답변질문
Problem with iterating loop again if output is less than some fixed value
Hi, I am trying to calculate theta1, theta2 and r using following equations. N=100; for j=2:N ...
6년 초과 전 | 답변 수: 1 | 0