如何在simulink中记录某一时刻的值并随时调用?。
Show older comments
在simulik中搭建了一个简单的反馈控制,其中一个控制器有以下需求:
1)其输出为关于时间t与初始误差e0相关:
y=Kt+b,if e0≥0;
y=-Kt+b,if e0<0.
目前我用常值1的积分作为时间戳,用matlab function编写控制器,但是在获取初始时刻e0的值并进行判断时遇到了困难,请问坛友们如何记录t=0时刻的初始误差值e0并被其他函数调用?


Answers (0)
Categories
Find more on MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!