필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How to create an mfile in my app in the working directory?

조회 수: 1 (최근 30일)
farzad
farzad 2020년 3월 30일
마감: MATLAB Answer Bot 2021년 8월 20일
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
Image Analyst 2020년 4월 2일
That code looks like nonsense. What are you trying to do with the saveas() function?
farzad
farzad 2020년 4월 5일
I tried to save an open figure via matlab but this did not work after compiling. I resolved it . It was actually working inside the app

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by