필터 지우기
필터 지우기

Custom Print File Name

조회 수: 5 (최근 30일)
Dima
Dima 2012년 3월 13일
Hello!
I have the following line of code that exports a chart as a PNG file:
print -dpng printname.png -r250
I was wondering if I had a variable called "printaname" - how could I make Matlab save this file with that variable as the name fo the output image file? example if the printaname = AUD23-234 , the file would be AUD23-234.png.
Thanks! Dima

채택된 답변

Jan
Jan 2012년 3월 13일
printaname = 'AUD23-234';
print('-dpng', printname, '-r250')
There is an example in help print. It is always a good idea to read the documentation in case of problems.
[EDITED] Link to the help added.
  댓글 수: 4
Jan
Jan 2012년 3월 13일
See [EDITED]: I've made "help print" a link to the corresponding section.
Dima
Dima 2012년 3월 13일
thanks) that method worked...

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by