필터 지우기
필터 지우기

How to resolve "Dot indexing is not supported for variables of this type." error?

조회 수: 2 (최근 30일)
Mohammad
Mohammad 2019년 2월 15일
편집: Mohammad 2019년 2월 15일
Hi,
I'm running the attached files as follows,
  1. Run the following MATLAB command and select the Microsoft Visual C++ 2015 Professional (C) compiler:
>> mex -setup
  1. Navigate to the Quadrotor/ folder.
>> cd Quadrotor/
  1. Open NMPC_Problem_Formulation.m and run. By running this file, the following things are done:
  • The NMPC controller is defined and configured, and necessary files are automatically generated to the ./funcgen/and ./codegen/ folders.
  • The very first OCP is solved and its solution is saved to GEN_initData.mat.
  • The controlled plant for simulation is defined and auto-generated.
  1. Open Simu_Simulink_Setup.m and run. By doing this, the NMPC controller is generated into C codes and compilied into a DLL file.
In the last step I get this error,
Dot indexing is not supported for variables of this type.
Error in NMPC_Iter_CodeGen (line 19)
xDim = dim.x;
Error in Simu_Simulink_Setup (line 31)
NMPC_Iter_CodeGen('dll','C',DoP);
Any help is appreciated.

답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

태그

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by