Documentation errors on mpc page
Mostrar comentarios más antiguos
1. Under the description section the following are each described twice differently
2. In the DisturbanceVariables section the Units field is described as
units — OV units
Should be DV units I think.
Respuestas (1)
mpcobj = mpc(plant)
mpcobj = mpc(plant,ts)
mpcobj = mpc(plant,ts,P,M,W,MV,OV,DV)
the second set is for a model, which is a different structure which includes a plant.
Will agree there's a typo that an "OV" didn't get corrected to "DV" when the doc author missed one when copied over the description for the Distrubance Variables from the Output Variables above.
3 comentarios
Bill Tubbs
el 10 de Nov. de 2026 a las 2:04
Movida: dpb
el 10 de Nov. de 2026 a las 14:34
Per the <model input description>, it is just a struct combining the plant description object with the other conditions as a MATLAB struct. Looks to be purely cosmetic 'syntactic sugar' to shorten the argument list.
One does have to parse the doc carefully and follow all the bread crumbs through the forest to get to the end, indeed.
Is a good catch to notice the typo; that's worthy of a note back to MathWorks to make the correction in the doc.
Bill Tubbs
el 10 de Nov. de 2026 a las 15:22
Categorías
Más información sobre Linear Plant Specification en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!