using colon (":") in simulink (R2009a)

2 ビュー (過去 30 日間)
Cyrille
Cyrille 2015 年 1 月 12 日
編集済み: Andreas Goser 2015 年 1 月 12 日
Hello People. I need you help. I use simulink (Matlab R2009a)
I have two constants: "1" and "13" I want to get the Vector 1:13 using this two constants in Simulink.
Look please at the pic: in pic 2, I want the resultat of pic 1.
please need your helpppppp

回答 (2 件)

Andreas Goser
Andreas Goser 2015 年 1 月 12 日

Cyrille
Cyrille 2015 年 1 月 12 日
Thank You very much :) :) But i search something else
I have a signal with the value "X"....(also it could be "X=5000") And the resultat "Y" have to be a Vector with the parameter 1 to X
Y=1:X
I try to do something with the block Matlab_function. But it does not work :( :(
  1 件のコメント
Andreas Goser
Andreas Goser 2015 年 1 月 12 日
編集済み: Andreas Goser 2015 年 1 月 12 日
I am concerned you might be confused with basic Simulink concepts. Maybe you just want a signal going from 1 to 5000 (a ramp). But then you need to model differently. A constant is obviously a constant signal. I doubt you want 5000 signals...
Probably best to talk through. Did you consider calling Technical Support?

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

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by