Feeds
질문
How do i write this code for different timestep like this code is for 3600 and i want to use different timesteps like 1800,900,450
nsteps = 12; t = zeros (nsteps,1); A = zeros (nsteps,1); B = zeros(nsteps, 1); P = zeros(nsteps,1); A(1) = 1; B(1) = 3; C...
거의 4년 전 | 답변 수: 2 | 0
2
답변질문
Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.
nma_laplaceRectNuemann2(nx=3; ny=3; bottom=0; top=170; right=50; lambda=1.2; tol=0.1; nma_laplaceRectNuemann2(nx,ny,bottom,top...
거의 4년 전 | 답변 수: 1 | 0
1
답변질문
Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.
for Y(1) =1:1:numel(t) ↑ Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise,...
거의 4년 전 | 답변 수: 4 | 0
4
답변질문
How to function 𝑎𝐴 + 𝑏𝐵 → 𝑝P in ODE89
𝑎𝐴 + 𝑏𝐵 → 𝑝P 𝑑𝐴/𝑑𝑡 = −𝐾 ∗ 𝐴 ∗ 𝐵 𝑑𝐵/𝑑𝑡 = (𝑏/𝑎) ∗ (𝑑𝐴/𝑑𝑡) = −𝑌𝐵 ∗ (𝐾 ∗ 𝐴 ∗ 𝐵) 𝑑𝑃/𝑑𝑡 = −(𝑝/𝑎) ∗ (𝑑𝐴/𝑑𝑡) = 𝑌𝑃 ∗ (𝐾 ∗ 𝐴 ∗ 𝐵)
거의 4년 전 | 답변 수: 1 | 0
1
답변답변 있음
Array indices must be positive integers or logical values.
clc clear all YB=1; YP=0.15; A0=1; B0=3; P0=0; K= 5E-5; ti=0; tf=12; F=@(t,y)[-K*y(1)*y(2);-YB*K*y(1)*y(2);YP*K*y(1)...
Array indices must be positive integers or logical values.
clc clear all YB=1; YP=0.15; A0=1; B0=3; P0=0; K= 5E-5; ti=0; tf=12; F=@(t,y)[-K*y(1)*y(2);-YB*K*y(1)*y(2);YP*K*y(1)...
거의 4년 전 | 0
질문
Array indices must be positive integers or logical values.
Error in TASKA (line 22) A(t)=(A0-B0/YB)./(1-(B0/(YB*A0))*exp(-((YB*A0/B0)-1)*K*B0.*t));
거의 4년 전 | 답변 수: 2 | 0
2
답변질문
Unrecognized function or variable 'ode89'.
Error in TASKA (line 18) [t,y]= ode89(f,[ti tf],[A0;B0;P0]);
거의 4년 전 | 답변 수: 1 | 0