Array Creation in simulink with size value from a simulink block
2 ビュー (過去 30 日間)
古いコメントを表示
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.
0 件のコメント
回答 (1 件)
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.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Simulink Functions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!