How can I perform mathematical operations using integers in the Embedded MATLAB function block?
Show older comments
My model includes an Embedded MATLAB Function block, in which I attempt to perform mathematical operations using data of type integer (e.g., int8, uint8, int16, uint16, etc.). When I simulate my model, the following error is returned:
Expected either a logical, char, single, or double.
Found a int8.
Function 'Embedded MATLAB Function' (#48.131.133), line 5, column 6:
"x1"
Accepted Answer
More Answers (0)
Categories
Find more on Modeling in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!