Documentation errors on mpc page

I'm reading the documentation for the mpc function here.
1. Under the description section the following are each described twice differently
mpcobj = mpc(plant)
mpcobj = mpc(plant,ts)
mpcobj = mpc(plant,ts,P,M,W,MV,OV,DV)
2. In the DisturbanceVariables section the Units field is described as
units — OV units
Should be DV units I think.

回答(1 个)

dpb
dpb 2026-11-10,0:05
移动:dpb 2026-11-10,14:33
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 个评论

Bill Tubbs
Bill Tubbs 2026-11-10,2:04
移动:dpb 2026-11-10,14:34
Ah good spot. In the second set of descriptions the plant argument is replaced with model. Didn't notice that thanks. Is that a fundamentally different model type or just a model that includes disturbance and measurement sub-models?
dpb
dpb 2026-11-10,13:24
编辑:dpb 2026-11-10,14:38
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.
I reported the units error on the page feedback.

请先登录,再进行评论。

类别

在 帮助中心 和 File Exchange 中查找有关 Linear Plant Specification 的更多信息

标签

提问:

2026-11-9,23:21

评论:

2026-11-10,15:22

Community Treasure Hunt

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

Start Hunting!

Translated by