|
On 24/11/10 12:33 AM, Teoh wrote:
> thank i got it...
> but the frame picture is at another file. if i place my code in the same
> folder as the picture
>
> a = sprintf('Frame %4.4d.png', k);
>
> i can get it when i place it in another file
>
> a = sprintf('C:\Users\Ren\Desktop\simulation\'Frame %4.4d.png', k);
>
> it is unable to read as after the C: there is a \ is there a way to
> solve this problem?
a = sprintf('C:\\Users\\Ren\\Desktop\\simulation\\Frame %4.4d.png', k);
Or alternately,
a = sprintf('C:/Users/Ren/Desktop/simulation/Frame %4.4d.png', k);
|