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

differential equationssolve

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)

Best Answer

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)