필터 지우기
필터 지우기

Array Creation in simulink with size value from a simulink block

조회 수: 2 (최근 30일)
Balaji Ramesh Sri
Balaji Ramesh Sri 2022년 12월 28일
답변: Sulaymon Eshkabilov 2022년 12월 28일
Hii... I need to do ones(1,N) in simulink , where N comes from a output of a simulink block (N is a integer). I dont want to use matlab functions. Any ideas would be useful.

답변 (1개)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2022년 12월 28일
One of the possible options is to use the [eye] and extract diagonal blocks - see attached simple Simulink model. The size of the identity matrix (diagonal) should be defined in MATKLAB workspace.

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by