I have a problem with this code which implements an nmpc controller for trajectory tracking a quadrotor especially this line [uk,nloptions,info] = nlmpcmove(​nlmpcobj,x​k,last

2 Ansichten (letzte 30 Tage)
  2 Kommentare
Aquatris
Aquatris am 29 Feb. 2024
Depending on matlab version, this way of structure creation might not work
nlmpcobj.MV = struct( ...
Min={0;0;0;0}, ...
Max={10;1.625;1.625;1.625});
disp(nlmpcobj.MV)
4×1 struct array with fields: Min Max
Instead you might need something like
nlmpcobj.MV = struct( ...
'Min',{0;0;0;0}, ...
'max', {10;1.625;1.625;1.625});
disp(nlmpcobj.MV)
4×1 struct array with fields: Min max

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Abdullah
Abdullah am 7 Apr. 2024
...

Kategorien

Mehr zu Simulink finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by