Community Profile

photo

Quanshun An


Last seen: más de 2 años hace Con actividad desde 2021

Followers: 0   Following: 0

Estadísticas

  • Thankful Level 2
  • Thankful Level 1

Ver insignias

Feeds

Ver por

Pregunta


How to solve the problem of " Error using odenonnegative, Non-negativity constraint violated at t0" when I use ode15s?
An error " Error using odenonnegative, Non-negativity constraint violated at t0" of ode15s came out when I optimize my model ...

más de 2 años hace | 0 respuestas | 0

0

respuestas

Pregunta


Why do I get different results from the numerical solution and the analytical solution with ODE15S? The numerical solution looks smoother than the analytical one
I want to simulate the dynamic behavior of pesticide in fruits, which is affected by daily temperature and relative humidity, by...

casi 3 años hace | 2 respuestas | 0

2

respuestas

Pregunta


Is there an approach that I can use the values such as Q_q and G_q outside the function? There is an error (Q_q and G_q are undefined))occurring when I tried to plot Q_q and G_q with the function of t
clc; clear; close all; t_measured = 0:5; Q = 5 * t_measured; G = 10 * t_measured + 6; initial_mass = [1 0]; tol = 1e-1...

casi 3 años hace | 0 respuestas | 0

0

respuestas

Pregunta


Is there an approach that I can use the values (located inside the function, such as Q_q…) outside the function? And are there other approaches that I can pass the parameters (such as Q_runoff…) into the function without using the 'global' function?
%% MODEL SETUP AND INPUT clc; clear; close all; global Q_runoff Q_leach K_WS M_Soil A_Soil P_Soil Rho_wet_Soil k_Soil...

alrededor de 3 años hace | 0 respuestas | 0

0

respuestas

Pregunta


Why doesn't the ode15s solver work when I switch 'k1q','k2q','k12q' from a single value into vectors(more values)?
clear;clc;close all; t_measured = 0:5; % measured times k1 = [0.1,0.2,0.3,0.4,0.5,0.6]; % k1...

alrededor de 3 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Error using odearguments (line 113) Inputs must be floats, namely single or double.
clear;clc;close all; syms t k1 = 2196595622168743217/1130684981446705152 - (27270095640660425*(100/(11*(99*exp(-(3*t)/40) + 1)...

alrededor de 3 años hace | 2 respuestas | 0

2

respuestas