MATLAB Answers

Is it possible to call matlab m files from TLC?

5 views (last 30 days)
Laurie Brown
Laurie Brown on 19 Dec 2019
Answered: Mark McBroom on 29 Dec 2019
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.

  0 Comments

Sign in to comment.

Answers (1)

Mark McBroom
Mark McBroom on 29 Dec 2019
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)

  0 Comments

Sign in to comment.

Sign in to answer this question.

Tags

Products


Release

R2019a

Translated by