Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
How to create an mfile in my app in the working directory?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi All
I have a code in my app and want it also to create an mfile with some lines in a folder I want and then run it. How is this possible ?
and how do I write a line that it can save an already open figure ?
I tried :
txt=str(saveas(f,'test','jpg'));
edit file.m
FID=fopen('file.m',w);
fprintf(FID, '%s', txt);
fclose(FID);
run('file')
댓글 수: 4
Image Analyst
2020년 4월 2일
That code looks like nonsense. What are you trying to do with the saveas() function?
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!