Why do I get error when I try to create my own function directive in my TLC file using Simulink Coder 8.1 (R2011b)?
Ältere Kommentare anzeigen
I am writing a tlc file to inline my S-function, and I have created my own user defined function within the tlc, for example:
%function fMax(x, y)
%if (x > y)
.
.
.
%endfunction
The tlc file gives the error:
Error: File: sFunc.tlc Line: 21 Column: 12
The > operator only works on numeric arguments
Even when changing the input and syntax I give to my user defined function in the tlc, I continue to see similar error messages.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Simulink Coder finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!