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 ビュー (過去 30 日間)
  2 件のコメント
Abdullah
Abdullah 2024 年 2 月 29 日
can someone tell me what is wrong with the code
Aquatris
Aquatris 2024 年 2 月 29 日
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

サインインしてコメントする。

回答 (1 件)

Abdullah
Abdullah 2024 年 4 月 7 日
...

カテゴリ

Help Center および File ExchangeSimulink についてさらに検索

タグ

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by