Is there a way to pause matlab script while smvideowrite records a multi body animation?
1 view (last 30 days)
Is there a way to pause matlab script while smvideowrite records a multibody animation? I have a Simulink model which I am sweeping through many data-sets so creating the animations programmatically in a loop is the only realistic way of processing the set; however rerunning the Simulink model will clear the mechanics explorer smvideowrite needs open to complete an animation. Currently I'm using pause statements to try to give the writer enough time to finish an animation but haven't been sucessjust ends up getting behind and failing anyway eventually. If there is some way to pause the script until video writer closed I would love to know about it!