Is there any way to repoen an XY Graph during a simulation once you have closed it?
1 次查看(过去 30 天)
显示 更早的评论
Is there any way to repoen an XY Graph during a simulation once you have closed it?
0 个评论
回答(1 个)
Abhishek Gupte
2012-1-11
No. This is why: 1. 'Look Under Mask' of the XY block. It is an S-function block;
2. During the initialization stage of the S-function block, a MATLAB figure window is created. Once the model simulation starts, the update method of the block is called at each time step and the data is plotted into the axes of this figure;
3. If the figure window is closed, the figure handle is destroyed and the S-function does not have an axes to write data to;
4. It is not possible to have a parameter that will re-open the figure because the XY block sets all the figure properties during initialization;
5. You can try to rewrite the S-function and provide a parameter that listens to whether the figure is open or not and another parameter that allows you to open a new figure during block update. Good luck!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Programmatic Model Editing 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!