필터 지우기
필터 지우기

How to have Logging in Matlab

조회 수: 1 (최근 30일)
Abhishek Mishra
Abhishek Mishra 2022년 10월 13일
댓글: Les Beckham 2022년 10월 17일
I need information on how to logg in MATLAB
  댓글 수: 1
Rik
Rik 2022년 10월 13일
What exactly do you want to log? That is an important question to figure out first. Perhaps you need something as large as diary, but perhaps a few fprintf calls would do it as well.

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

채택된 답변

Les Beckham
Les Beckham 2022년 10월 13일
Perhaps the diary command will do what you need.
An excerpt from the documentation linked above:
When logging is on, MATLAB® captures entered commands, keyboard input, and text output from the Command Window. It saves the resulting log to the current folder as a UTF-8 encoded text file named diary.
  댓글 수: 2
Abhishek Mishra
Abhishek Mishra 2022년 10월 17일
Thanks! This works fine for me.
Les Beckham
Les Beckham 2022년 10월 17일
You are quite welcome.

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

추가 답변 (1개)

Hanojhan Rajahrajasingh
Hanojhan Rajahrajasingh 2022년 10월 13일
Appologies for my previous response.
Can you be more specific about your project?
Here is an example of data logging in MATLAB:

카테고리

Help CenterFile Exchange에서 Entering Commands에 대해 자세히 알아보기

태그

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by