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!