coder.extrinsic may not occur inside an expression. It may only occur at the top-level.
7 次查看(过去 30 天)
显示 更早的评论
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/346959/image.png)
Thanks
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!