|
"amit sharma" <sharma.a28@gmail.com> wrote in message
news:0e57139e-afb6-4bed-92fb-16181be8d316@h40g2000pro.googlegroups.com...
> Dear sir
>
> i have a function file ross.m, which have a parameter K in it.
> I call that function in by function sol=dde23('ross',
> [tau,tau,tau],rand(9,1),[0,1000]);
>
> I want pass parameter K in ross function by using the dde23
> function.
>
> How to do this ?
Use an anonymous function.
k = 17;
sol = dde23(@(t, y, z) ross(t, y, z, k), ...
--
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com
|