MATLAB/SIMULINK全局变量设置
分为以下步骤:
①添加data store memory,设置变量名,设置data type(非auto)、signal type(非auto);
②在MATLAB主界面点击edit data,在其中选择add data,设置变量名和Scope(data store memory);
③在simlink中添加MATLAB-function模块,其中使用global调用该变量即可。
分为以下步骤:
①添加data store memory,设置变量名,设置data type(非auto)、signal type(非auto);
②在MATLAB主界面点击edit data,在其中选择add data,设置变量名和Scope(data store memory);
③在simlink中添加MATLAB-function模块,其中使用global调用该变量即可。