Effacer les filtres
Effacer les filtres

How to have Logging in Matlab

1 vue (au cours des 30 derniers jours)
Abhishek Mishra
Abhishek Mishra le 13 Oct 2022
Commenté : Les Beckham le 17 Oct 2022
I need information on how to logg in MATLAB
  1 commentaire
Rik
Rik le 13 Oct 2022
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.

Connectez-vous pour commenter.

Réponse acceptée

Les Beckham
Les Beckham le 13 Oct 2022
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 commentaires
Abhishek Mishra
Abhishek Mishra le 17 Oct 2022
Thanks! This works fine for me.
Les Beckham
Les Beckham le 17 Oct 2022
You are quite welcome.

Connectez-vous pour commenter.

Plus de réponses (1)

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

Catégories

En savoir plus sur Entering Commands dans Help Center et File Exchange

Tags

Produits


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by