Filter löschen
Filter löschen

Examples for model predictive control missing?

4 Ansichten (letzte 30 Tage)
Anthony Mogis
Anthony Mogis am 10 Jun. 2016
Beantwortet: Anthony Mogis am 23 Okt. 2017
I'm trying to take a look at a non linear model predictive control example. Specifically "Adaptive MPC Control of Nonlinear Chemical Reactor Using Successive Linearization".
When I put in the code to open the example
openExample('mpc_featured/ampccstr_linearization')
I get the following errors:
Index exceeds matrix dimensions.
Error in openExample>readMetadata (line 95)
metadata.component = tokens{1};
Error in openExample (line 10)
metadata = readMetadata(id);
I checked my examples folder and the "mpc_featured" folder isn't there. Is there somewhere I can download this or is there some special package/toolbox I might be missing?
I have the Simulink Control Design toolbox as well as the Control System toolbox. My Matlab version is R2016a-Academic Use. Am I just not looking in the right place?
FYI, my school provides the students and faculty with a free Matlab license, which is what I'm working with.
  1 Kommentar
Jesus Felez
Jesus Felez am 9 Sep. 2016
I'm having the same problem. Exxampes do not appear Please, can you help us?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Mischa Kim
Mischa Kim am 9 Sep. 2016
Anthony, the example requires the Model Predictive Control Toolbox. I just checked and this toolbox is not included in your university license.

Weitere Antworten (2)

Nikhil Shrestha
Nikhil Shrestha am 23 Okt. 2017
openExample('images/BoostLocalColorContrastUsingColorModeExample') Index exceeds matrix dimensions.
Error in openExample>readMetadata (line 95) metadata.component = tokens{1};
Error in openExample (line 10) metadata = readMetadata(id);

Anthony Mogis
Anthony Mogis am 23 Okt. 2017
I got this sorted a while ago. Mischa Kim is correct. If you don't have the MPC Toolbox, you can't access the example. I had to get a trial version to check it out.
Thanks for the responses.

Community Treasure Hunt

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

Start Hunting!

Translated by