How to take the screenshots of two or more scopes of a single testcase while running the simulations?
Hello,
I’m running the simulations which shows the outputs in scopes. I could able to take the screenshots of the one scope using below commands
shh = get(0,’ShowHiddenHandles’); %finds the open figures
set(0,’ShowHiddenHandles’,’On’);
set(gcf,’PaperPositionMode’,’auto’); %gcf-current figure handle
set(gcf,’InvertHardcopy’,’off’);
saveas(gcf,sprintf(‘TC%d.png’,j));
set(0,’ShowHiddenHandles’,shh);
I could not able to take the screenshot of more than one scope of a single testcase. Here I’m using gcf command. Is there anyother command I have to use?
Any inputs highly appreciated!!
Thank you in advance!! :)Hello,
I’m running the simulations which shows the outputs in scopes. I could able to take the screenshots of the one scope using below commands
shh = get(0,’ShowHiddenHandles’); %finds the open figures
set(0,’ShowHiddenHandles’,’On’);
set(gcf,’PaperPositionMode’,’auto’); %gcf-current figure handle
set(gcf,’InvertHardcopy’,’off’);
saveas(gcf,sprintf(‘TC%d.png’,j));
set(0,’ShowHiddenHandles’,shh);
I could not able to take the screenshot of more than one scope of a single testcase. Here I’m using gcf command. Is there anyother command I have to use?
Any inputs highly appreciated!!
Thank you in advance!! 🙂 Hello,
I’m running the simulations which shows the outputs in scopes. I could able to take the screenshots of the one scope using below commands
shh = get(0,’ShowHiddenHandles’); %finds the open figures
set(0,’ShowHiddenHandles’,’On’);
set(gcf,’PaperPositionMode’,’auto’); %gcf-current figure handle
set(gcf,’InvertHardcopy’,’off’);
saveas(gcf,sprintf(‘TC%d.png’,j));
set(0,’ShowHiddenHandles’,shh);
I could not able to take the screenshot of more than one scope of a single testcase. Here I’m using gcf command. Is there anyother command I have to use?
Any inputs highly appreciated!!
Thank you in advance!! 🙂 matlab, simulation, simulink, script, screenshot MATLAB Answers — New Questions
​