The getframe example doesn't work: impossible to convert stuct in double

3 views (last 30 days)
Dear all,
I tried to run the simple example for making a movie usnig getframe. Unfortunately the example stops at the getframe line complaining that:
The following error occurred converting from struct to double: Error using double Conversion to double from struct is not possible.
Error in movietest (line 8) F(j) = getframe;
I remember with my prvious matlab version I had no problem. Someone can help me?
Thanks
Gabriele

Answers (1)

Jan
Jan on 5 Aug 2013
Edited: Friedrich on 5 Aug 2013
This does not seem like a problem of the Matlab version, but concerns the type and size of F before the example runs. How did you initialize F? Perhaps all you need is a:
clear('F')
  2 Comments
Gabriele
Gabriele on 5 Aug 2013
Well thanks,
at least it does something now...even though not good. This getframe function seems to me a bit failing.
gabriele
Jan
Jan on 5 Aug 2013
Please explain any details. We cannot guess, what "seems a bit failing" means. Perhaps you omit the magic pause(0.02) after uicontrols have been created?

Sign in to comment.

Categories

Find more on Just for fun in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!