Function 'assignin' not supported for code generation.

조회 수: 9 (최근 30일)
lucinda douglas
lucinda douglas 2021년 2월 12일
답변: Walter Roberson 2021년 2월 12일
i am currently tring to debug a model and to do this i want to see what values are being fed into the matlab function block in simulink, i've tried using display blocks but they don't update when the error occurs so i tried to add an assignin command in the funtion block to send the inputs to the workspace to view but i keep getting this error. does anyone know another way to view the inputs?

채택된 답변

Walter Roberson
Walter Roberson 2021년 2월 12일
Globals. Which requires registering a datastore https://www.mathworks.com/help/simulink/ug/using-global-data-with-the-matlab-function-block.html but inside a MATLAB Function Block you can code in terms of the standard global directive (you just have to register the MATLAB Function Block in the port manager.)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by