MATLAB Answers

coder.extrinsic may not occur inside an expression. It may only occur at the top-level.

3 views (last 30 days)
Lukas Polacek
Lukas Polacek on 17 Aug 2020
Answered: Mark McBroom on 21 Aug 2020
Hi,
I have a problem.
I need to create matlab funcion that transforms data to jsom format. I use jsonencode, but it is matlab function so i need to use coder.extrinsic function but it doesn't work in simulink block of matlab function and gives me this error. I need to transorm data to json and then send them to kosimualtion. How can I fix it.
Thanks

  0 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by