Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
save the output from "command window" into a text file

Subject: save the output from "command window" into a text file

From: J G

Date: 11 Nov, 2011 00:56:30

Message: 1 of 2

I want to save the output from my "command window" into a text file at the end of a loop.
I've tried using "diary" but obviously I'm not using it right as the "dairy" file is empty. Do I just call "diary" at the end of my code? Or how does this work? Or is there another function I should use? Thanks, I'm pretty new to this so simplistic answers would be appreciated!

Subject: save the output from "command window" into a text file

From: J G

Date: 11 Nov, 2011 01:19:29

Message: 2 of 2

Never mind - sorted. I was using the diary command outside of the loop, hence why it was empty.

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us