I have a model that contains a Matrix Viewer block. I run the model and the Matrix Viewer displays matrices as color images correctly. I use the following command to close the viewer:
sdspfscope2([],[],[],'ScopeUpdate',[gcs '/Matview'],'CloseFig')
It closes without any problems. However, if I use the following command to open the viewer:
sdspfscope2([],[],[],'ScopeUpdate',[gcs '/Matview'],'OpenFig')
I receive the following errors:
??? Invalid dialog parameter index for 'matview1/Matview'. This block has no dialog parameters. Error in ==> sdspfscope2>GetMaskParameters at 2170 if (block.DialogPrm(1).Data == 1) %%vector scope
Error in ==> sdspfscope2>ScopeUpdate at 4320 params = GetMaskParameters(block); Error in ==> sdspfscope2 at 212 feval(varargin{4:end});% GUI callback
Best Answer