error using 'linearize' command in matlab

2 vues (au cours des 30 derniers jours)
sharmin
sharmin le 1 Août 2015
Réponse apportée : sharmin le 1 Août 2015
*when i use the matlab's own example of* http://www.mathworks.com/help/mpc/examples/control-of-a-multi-input-multi-output-nonlinear-plant.html running this example gives the following error,
Undefined function 'is' for input arguments of type 'char'.
Error in linearize (line 16) if is(p,'linear') & ~is(p,'compound')
Error in mpcnonlinear (line 23) model = linearize('mpc_nonlinmodel');
after changing is to isa, the program gives again this following error,
Error using mupadmex Error in MuPAD command: Index exceeds matrix dimensions.
Error in sym/subsref (line 687) B = mupadmex('symobj::subsref',A.s,inds{:});
Error in linearize (line 34) plin = p0+double(jacobian(p,x))*(x-x0);
Error in mpcnonlinear (line 23) model = linearize('mpc_nonlinmodel');
please help..

Réponses (1)

sharmin
sharmin le 1 Août 2015
I found the solution of the problem.. the mpt toolbox has a linearize function, which was shadowing the original command of matlab. after uninstalling mpt toolbox, it is working fine.
thank you.

Catégories

En savoir plus sur Get Started with MuPAD dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by