Borrar filtros
Borrar filtros

How to have Logging in Matlab

1 visualización (últimos 30 días)
Abhishek Mishra
Abhishek Mishra el 13 de Oct. de 2022
Comentada: Les Beckham el 17 de Oct. de 2022
I need information on how to logg in MATLAB
  1 comentario
Rik
Rik el 13 de Oct. de 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.

Iniciar sesión para comentar.

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (1)

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

Categorías

Más información sobre Entering Commands en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by