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

Yazan
Yazan 2021년 7월 1일
What do you mean by "I want this sequence in the repeating sequence"? Provide your code.
KSSV
KSSV 2021년 7월 1일
REd about repmat, repelem. If not show your code which gives you error.
safwan shraideh
safwan shraideh 2021년 7월 1일
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.

댓글을 달려면 로그인하십시오.

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2021년 7월 1일

0 개 추천

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.

카테고리

도움말 센터File Exchange에서 Simulink Functions에 대해 자세히 알아보기

제품

릴리스

R2015b

태그

질문:

2021년 7월 1일

답변:

2021년 7월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by