フィルターのクリア

[SIMULINK] Increment a variable

15 ビュー (過去 30 日間)
Jay Samin
Jay Samin 2016 年 8 月 26 日
コメント済み: Jay Samin 2016 年 8 月 26 日
Hi everyone,
I have a problem in Simulink, I have a variable "k" as constant Block (start Value k =1 ) and i would like to increment "k" after every Time i simulate my Modell untill k=4 then should k reset to 1
i will apreciate any Help many thanks Jay

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 8 月 26 日
  1 件のコメント
Jay Samin
Jay Samin 2016 年 8 月 26 日
Hallo Azzi,
thank you for the quick response,after runing ur model I get "y" as a vector [1 2 3 4, 1 2 3 4 ect] in workspace .
but actually i wanted to increment "y" by 1 after each time I click on "the simulation button" untill "y" is 4 then it will be reset to 1 again. Jay

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by