script pauses while a generated picture is open
显示 更早的评论
Hello,
I have a script that generates around 10 graphs, while the script is running, two of these graphs (PNGs) are opened so that i can see if the data is good. The problem is that while these pictures are open the script pauses and i have to close image viewer (or quicktime) so that the script can resume. The strange thing is that the person that did this script does not have the same problem, so i guess it must be some setting. Any suggestions? Thanks in advance, Cesar
3 个评论
Doug Hull
2011-5-13
How are they being opened? What is the MATLAB command?
Sean de Wolski
2011-5-13
Are you two using the same operating system?
Cesar Mendes
2011-5-13
回答(1 个)
Walter Roberson
2011-5-13
system() would normally be expected to wait for what it started to return, but the exact action would depend on what the system has configured as the default action for PNG files.
It might help to change the command to
system([foldername 'FlyLegParaDistance.png &']);
3 个评论
Cesar Mendes
2011-5-13
Walter Roberson
2011-5-13
The other computer has been configured for a different action to open .png files. You should check the file associations on both machines.
Cesar Mendes
2011-5-13
类别
在 帮助中心 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!