problem savind with diary function

something wierd, only the second time that i run the script the function actually save the data in the txt file. what am i doing wrong? the m file is attached to this post
or maybe there is another solution for this, i'm trying to generate text file with the data taken from the workspace something similar to what there is in the script

 Accepted Answer

If you add
diary on
after line 27, then it should work.

More Answers (0)

Categories

Products

Tags

Asked:

on 16 Jan 2015

Answered:

on 16 Jan 2015

Community Treasure Hunt

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

Start Hunting!