Sine Wave not recognize with find_system

조회 수: 1 (최근 30일)
Khoi Le
Khoi Le 2020년 11월 16일
답변: Fangjun Jiang 2020년 11월 30일
I am finding the path for Sine Wave block so that can replace a block in f14 model. However, when I use
find_system(simulinkModel, 'BlockType', 'Sine Wave')
The output said it empty and cannot find it
0×1 empty cell array
But if I replace Sine Wave with Step block it said
1×1 cell array
{'simulink/Sources/Step'}
Am I mistake something or SIne Wave cannot be found when using find_system

채택된 답변

Fangjun Jiang
Fangjun Jiang 2020년 11월 30일
The 'BlockType' for the "Sine Wave" is 'Sin'.

추가 답변 (1개)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2020년 11월 16일
You are right. Its name contains two words and because of that, supposedly it fails to locate it.
  댓글 수: 4
Khoi Le
Khoi Le 2020년 11월 16일
편집: Khoi Le 2020년 11월 16일
The solution for this maybe too complicated, but it can only barley accepted from some perspectives. But thanks
Sulaymon Eshkabilov
Sulaymon Eshkabilov 2020년 11월 16일
Good luck.

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

카테고리

Help CenterFile Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by