Why does the axis background color appear gray instead of white in the generated AVI file in MATLAB 7.2 (R2006a) ?
2 views (last 30 days)
Show older comments
I am using the AVIFILE function to generate an AVI file using GETFRAME/ ADDFRAME commands. When the MATLAB figure window pops up, the axis background appears to be white as expected but the same turns gray in the generated AVI file.
Accepted Answer
MathWorks Support Team
on 27 Jun 2009
The change in the axis background color occurs due to the compression codec setting used in the AVI file generation. For the AVIFILE function, the default compression codec setting used is 'Indeo5' for Windows and 'None' for UNIX.
To change the appearance of the axis background color in the generated AVI file, change the compression code setting to 'Indeo3' or 'None' for Windows.
This can be done be changing the 'compression' parameter value using the following syntax for calling AVIFILE
aviobj = avifile(filename, 'Param1', Val1, 'Param2', Val2,...)
0 Comments
More Answers (0)
See Also
Categories
Find more on Audio and Video Data 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!