Johan you are write i have posted this question in a lot of forums including mathworks, stachexchange, mathstackexchange but i didnt get answer for this one ...
so i just posted it here...
i am not good in coding...
i dont get how to write this time delayed state in ordinary diffrential equation....
if you will do this for me either in simulink or matlab i will definately be thankful...!