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?
MATLAB: Function ‘assignin’ not supported for code generation.
assignindebuggingdisplayerrorMATLABsimulink
Best Answer