- #1
rem88
- 5
- 0
Hi, sorry to ask this, i know its really simple. I tried to look online for help but i couldn't understand why i was going wrong.
I have a function u = [0.25*s]/[0.005 + s]
I put this in a .m file.
I am going to use this by puting an initial value (so) into find u. Then u is used in a differential equation to find a new s.
but when i for example write, s=2 iget this message
>> s=2
s =
2
>> u
? Input argument "s" is undefined.
Error in ==> u at 2
u = [0.25*s]/[0.005 + s]
>>
this is my m file
function u = f(s)
u = [0.25*s]/[0.005 + s]
i haven't really used mat lab before so any help would be great.
Thanks, rem
I have a function u = [0.25*s]/[0.005 + s]
I put this in a .m file.
I am going to use this by puting an initial value (so) into find u. Then u is used in a differential equation to find a new s.
but when i for example write, s=2 iget this message
>> s=2
s =
2
>> u
? Input argument "s" is undefined.
Error in ==> u at 2
u = [0.25*s]/[0.005 + s]
>>
this is my m file
function u = f(s)
u = [0.25*s]/[0.005 + s]
i haven't really used mat lab before so any help would be great.
Thanks, rem