This is the code I've been using;

function hode23seg

[T,Y]=ode23(@yprime1,[0 20],1);

[T2,Y2]=ode23s(@yprime1,[0 20],1);

semilogy(T,abs(Y),'bo',T2,abs(Y2),'r*');

function dy=yprime1(t,y)

dy=-30*y;

The error message is

??? Error using ==> ode23

Too many input arguments.

Error in ==> hode23seg at 3

[T,Y]=ode23(@yprime1,[0 20],1);

Does anyone have any ideas what's going on?

Thanks