How do i make a loop in simulink?
1 回表示 (過去 30 日間)
古いコメントを表示
Hi! I have written a code in script and it works well. But i don't know how to make it in simulink. This is my code:
- x = [1,2,3]';
- F = [1,2,3; 4,5,6; 7,8,9];
- for i = 1:10
- x = F*x;
- end
- t = 1:10;
- plot(t, x(1,t));
Thanks!
0 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!