Error "Cannot Create Output File" When Trying to Save Figure
조회 수: 3 (최근 30일)
이전 댓글 표시
I am trying to save my figure to a specific path using this code. I have my path set under outputs and my directory is set to that path but it just keeps telling me "Cannot create output file."
print(gcf,'-djpeg',strcat(outputs,'/','lengths'));
댓글 수: 0
답변 (1개)
Star Strider
2022년 1월 19일
I don’t often use print however it appears that the first argument needs to be the file name to print to. The argument order is important in MATLAB, except for name-value pair arguments.
.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Printing and Saving에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!