How can I use the interpreted MATLAB block in simulink to return a vector?
Show older comments
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!
Answers (1)
Sean de Wolski
on 31 Jan 2018
0 votes
Just use a MATLAB function block.
Categories
Find more on Simulink Functions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!