How do we find variable value overwrite in M file and Simulink.
Here I have writen very simple code. Does matlab has any tool or any method to find overwrite variable?
here 'out_c' has overwritten. how to find this kind of issue?
if a > b
out_c = 20
else
out_c = 10;
end
out_c = 15;
Thanks in advance !!!
2 Comments
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/469346-find-variable-value-overwritten-in-m-file-and-simulink#comment_719323
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/469346-find-variable-value-overwritten-in-m-file-and-simulink#comment_719323
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/469346-find-variable-value-overwritten-in-m-file-and-simulink#comment_719361
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/469346-find-variable-value-overwritten-in-m-file-and-simulink#comment_719361
Sign in to comment.