[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to output to a new file after each iteration?
From: |
Jordi Gutiérrez Hermoso |
Subject: |
Re: How to output to a new file after each iteration? |
Date: |
Thu, 19 Apr 2012 09:24:06 -0400 |
On 19 April 2012 05:43, nat0489 <address@hidden> wrote:
> This is the code I am using:
>
> figure(i)
> [C,h] = contour(a);
> title(['filename_' num2str(i) '_moreinfo']);
>
> print(['filename_num2str(i)_moreinfo', '-dpdf']); %more info is
> extra bits I need in the file name
Try instead,
print(sprintf("filename_%d_moreinfo", i), '-dpdf')
HTH,
- Jordi G. H.