필터 지우기
필터 지우기

publish to html gui results

조회 수: 1 (최근 30일)
eliza
eliza 2012년 3월 23일
hi
i was wondering how to publish the results of a gui

답변 (2개)

Rick Rosson
Rick Rosson 2012년 3월 23일
Please be more specific.
  댓글 수: 1
eliza
eliza 2012년 3월 26일
i have a gui and whereby i have a push button that produces analytical results. these results are published on the command window.
however is there away that when i activate the push button the results are automatically published to an html file and not just on the command window?

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


Rick Rosson
Rick Rosson 2012년 4월 1일
I do not believe there is a way to do that automatically.
But, you can use fprintf to output text and numbers to a file instead of to the command window. If you know how to write HTML, you can output a combination of tags, text, and data to create a fully formatted web page. I have posted an example showing how to do that on MATLAB Central.
If you don't have the time or the need for fully formatted output, you can simply redirect your output to an external HTML plain text file:
filename = 'output.htm';
html = fopen(filename,'w');
fprintf(html,'\n');
fprintf(html,'<body>\n');
fprintf(html,'<pre>\n');
...
fprintf(html, ... );
...
fprintf(html,'\n');
fprintf(html,'</body>\n');
fprintf(html,'\n');
fclose(html);</pre>
web(filename);
HTH.

카테고리

Help CenterFile Exchange에서 MATLAB Report Generator에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by