MATLAB: Can i get the source code for obtaining 30fps from a video signal?

actually i need a matlab source code for obtaining frames(jpg png) from a video signal of any format..
Related Question