C++ std::tr1::array
조회 수: 2 (최근 30일)
이전 댓글 표시
The C++ compiler in MATLAB doesn't seem to recognize code like std::tr1::array<double, dimension> variablename;
Am I not able to use this type of array structure with MATLAB Should I just replace these arrays with something like double variablename[dimension];
Thanks,
Paul
댓글 수: 0
답변 (2개)
Titus Edelhofer
2012년 8월 3일
Hi Paul,
you are writing a MEX file? If so, the language constructs to be understood depend on the compiler, not on MATLAB. If you use LCC, the compiler that comes with MATLAB, keep in mind, that it's a free compiler that has some limitations.
So either use simpler data structures as you said, or install e.g. the Windows SDK to have a stronger C++ compiler ...
Titus
댓글 수: 0
James Tursa
2012년 8월 3일
The LCC compiler that ships with MATLAB is a C compiler, not a C++ compiler.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Call C++ from MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!