I have a 12x12 matrix that I need to process each row the same way. I would like to use the For Each Subsystem block but cannot figure out how to dimension things properly on the For Each block. I want to process each row, then move onto the next row, etc. and then store the output for each computation in a unique element of a vector.

 채택된 답변

Fangjun Jiang
Fangjun Jiang 2017년 1월 19일

0 개 추천

See screen capture and the attached model.

댓글 수: 2

Mark Ekblad
Mark Ekblad 2017년 1월 19일
Thanks, this does solve my issue but I was trying to use the For Each Subsystem block, but this works!
Mark Ekblad
Mark Ekblad 2017년 1월 19일
How can I debug since at one time step the iterator runs too fast to see intermediate results?

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

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Subsystems에 대해 자세히 알아보기

제품

질문:

2017년 1월 19일

댓글:

2017년 1월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by