Why am I unable to open the Matrix Viewer block in Signal Processing Blockset using the SDSPFSCOPE2 command?

2 views (last 30 days)
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

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
Opening a Matrix Viewer figure using SDSPFSCOPE2 is not supported in the Signal Processing Blockset.
To work around this issue, try to stop the simulation and start it again. The Matrix Viewer will appear automatically when the model is run. You can also use a Signal To Workspace block to bring the data directly into MATLAB where the full visualization capabilities of MATLAB can then be used.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!