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