why the output of "ceil" becomes non-integer in embedded matlab function?

3 views (last 30 days)
I am working with embedded Matlab function in simulink and using the function "ceil" inside the embedded block. When I plot the output or observe the variable containing the function "ceil" in command window, it looks okay; always integer. But, if I try to use that variable containing "ceil" in other variables, it returns an error indicating the output of "ceil" function is non-integer. So, How can I solve this problem? Please help me. Thanks.

Answers (0)

Categories

Find more on MATLAB Coder in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!