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,xk,last
2 次查看(过去 30 天)
显示 更早的评论
2 个评论
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)
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)
回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!