McStasMcXtrace / iFit

a simple library to analyze data (with McCode and Phonons/DFT hooks). :warning: this project has been moved to https://gitlab.com/soleil-data-treatment/soleil-software-projects/remote-desktop
http://ifit.mccode.org
Other
5 stars 5 forks source link

iData: saveas: avi movie #108

Closed farhi closed 7 years ago

farhi commented 7 years ago

Create a rotating movie for 2D+ objects.

fig=figure;
plot(s);
aviobj = avifile('example.avi')
for ang=0:5:360
  view([45 ang])
  aviobj = addframe(aviobj,getframe(fig));
end
close(fig)
aviobj = close(aviobj);
farhi commented 7 years ago

ok, but need:

this does not work with recent Matlab version which use:

farhi commented 7 years ago

Done with commit https://github.com/McStasMcXtrace/iFit/commit/61c371f92ebe202c3404480d71ab13377b372eb5