Using chrono in s-functions
조회 수: 9 (최근 30일)
이전 댓글 표시
I am trying to use c++ chrono library in an s function inside MATLAB.The function builds but the clock doesnt seem to respond.Is there any way to directly use chrono inside S-functions without using ssGetT(S).
댓글 수: 0
답변 (1개)
Dinesh Yadav
2019년 10월 30일
You can use chrono library inside S-Functions as long as the compiler you are using knows about those libraries. Check your compiler using
mex -setup C/C++
I am using Visual Studio Community 2019 compiler and it works for importing chrono inside s-functions.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!