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
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 CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

태그

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by