Getting this error message? Subscript indices must either be real positive integers or logicals.? trying to solve monod equation ..!

clc;
clear all;
syms x t u I K s ks
u=0.05;
s=0.013;
ks=0.0003;
K=14;
I=45;
ki=1;
y=diff(x,t)==u*s*x*((I/(I+K)))/(ks+s+((s^2/(ki))))
cond=x(0)==0.1;
dsolve(y,cond)

 Réponse acceptée

You need to indicate that x is a function of t.
syms x(t) I K s ks
u=0.05;
s=0.013;
ks=0.0003;
K=14;
I=45;
ki=1;
y=diff(x,t)==u*s*x*((I/(I+K)))/(ks+s+((s^2/(ki))))
cond=x(0)==0.1;
dsolve(y,cond)

Plus de réponses (0)

Catégories

En savoir plus sur Symbolic Math Toolbox dans Centre d'aide et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by