Plesae Help!!! I am stuck!! :( [Matlab]

Discussion in 'Programmer's Corner' started by prionkor, Jun 12, 2009.

  1. prionkor

    Thread Starter New Member

    Jun 8, 2009
    I was trying to save a video file in sequential jpeg files but stuck in the end when concatenate. Here is my program:

    clear all;
    mov = aviread('v1.avi');
    for i=1:150
    [im1,map] = frame2im(mov(i));
    imshow( im1 );
    imwrite(im1,'image' i .jpg'); % concatenate need here such as image1, image2

    This program saves only one image. i need to concatenate the string "image" with the variable i to make the output as image1, image2, image3.... as the loop goes. Hope it make sense. Please help me!!! I need the solution ASAP.