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:
Sending output to both the screen and text file at the same time

Subject: Sending output to both the screen and text file at the same time

From: Brian

Date: 29 Dec, 2011 20:50:09

Message: 1 of 1

I am using frpintf to print the results of some calclulations to a an ASCII file. Here is an example: fprintf(file_id,'R-bar-squared: %4.3f\r', rbar2);

When I do this, the material is not printed on the sceen. I would like to do both. Is there a way to to this without doubling my fprintf commands?

Tags for 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