필터 지우기
필터 지우기

How to generate a html logfile using m scripting?

조회 수: 1 (최근 30일)
Archana
Archana 2015년 7월 20일
편집: Guillaume 2015년 7월 20일
Hello,
How do I generate a html log file for one of my automation scripts? I am able to create a txt log file but i need a html log file. Any pointers would be extremely helpful. Thank you!
*hint( my log file lists some faulty blocks in model based on certain criteria)

답변 (1개)

Guillaume
Guillaume 2015년 7월 20일
편집: Guillaume 2015년 7월 20일
An html file is just a text file where some sequences of characters have a predefined meaning.
There's no such thing as a standardised html log file format, so only you know what the format of that html log file should be. To produce a valid html (5) file, it could be as simple as writing:
<!DOCTYPE html>
<html><body><p>
before the text you normally write to the log file and
</p></body></html>
after.
Note that html is not a practical format for sharing data between computers, it's only useful for displaying things in a web browser. For sharing data between computers, you have XML (or json, or ...).

카테고리

Help CenterFile Exchange에서 Structured Data and XML Documents에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by