How can I use the interpreted MATLAB block in simulink to return a vector?

조회 수: 3 (최근 30일)
Evan John
Evan John 2018년 1월 31일
답변: Sean de Wolski 2018년 1월 31일
I am trying to use the interpreted MATLAB function in simulink to run an m file. It takes a vector in and outputs a vector, but for some reason gives an "index exceeds matrix dimensions" error. Can somebody please take a look at the simple attached code that illustrates this bug? I cannot figure out what the problem is! Thanks so much!

답변 (1개)

Sean de Wolski
Sean de Wolski 2018년 1월 31일
Just use a MATLAB function block.

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by