error in repeating sequence

4 Ansichten (letzte 30 Tage)
safwan shraideh
safwan shraideh am 1 Jul. 2021
Beantwortet: Fangjun Jiang am 1 Jul. 2021
I want this sequence in the repeating sequence:
time values: [0.0 0.02 0.02 0.04 0.06 0.08 0.10 0.12 0.12 0.14 0.16 0.18 0.20 0.22 0.24 0.26 0.28 ]
output values: [0 0 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 ]
But when running it, matlab show me an error.
  3 Kommentare
KSSV
KSSV am 1 Jul. 2021
REd about repmat, repelem. If not show your code which gives you error.
safwan shraideh
safwan shraideh am 1 Jul. 2021
Hello Yazan, In simulink, repeating sequence block, when I entered the above values and run the simulation, an error occured at the repeating sequence block.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Fangjun Jiang
Fangjun Jiang am 1 Jul. 2021
It's better to provide the error message.
I assume the error is about the time data that you provied. There are duplicated values such as 0.02 and 0.12. You can't specify two different values at one exact time moment.

Kategorien

Mehr zu Simulink Functions finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by