Save data in a vector
3 次查看(过去 30 天)
显示 更早的评论
In simulink, I need to have a block that does the following:
function y = fcn(u)
if u==M
put M as the first variable of a vector
put upcoming values as the next values in the vector
y=vector (when u is equal to M again)
end
Could you please help me with this?
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!