Simulinkでのforループについて
Afficher commentaires plus anciens
Simulink内でforループを作成したいのですがs-functionブロックを使わずにif,else文が含まれたロジックを組むことは可能でしょうか。 cソースコードだと (例) for(i = 0; i <= a; i++){ 文1;
for(j = 0; j <= b; j++){
文2;
if (uu[1] == 1 && p[i][j] < L){
文3;
}else{
文4;
}
}
J[i] = 文5;
if(i != 0){
if(条件){
bunn6
}
}
}
Réponses (2)
Naoya
le 9 Oct 2018
2 votes
MATLAB Functionブロックは、 MATLAB 言語ベースでSimulinkのブロックを実現することができます。頂いたコードフローを直観的にMATLAB 言語ベースで実現できます。
Catégories
En savoir plus sur Verification, Validation, and Test dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!