Is it possible to call matlab m files from TLC?

조회 수: 6 (최근 30일)
Laurie Brown
Laurie Brown 2019년 12월 19일
답변: Mark McBroom 2019년 12월 29일
Is it possible to call matlab m files from TLC? I have several Level 2 Simulink blocks that call matlab files, and I need to autogenerate C files from this. The program currently has LOTS of already created code written in Matlab, that we call from a level 2 simulink block.

답변 (1개)

Mark McBroom
Mark McBroom 2019년 12월 29일
Use the built-in TLC function FEVAL to run any MATLAB command, including a MATLAB function, from TLC. THis example calls the MATLAB sin() function.
%assign result = FEVAL("sin",3.14159)

카테고리

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

태그

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by