Date: Jan 19, 2011 6:42 PM
Author: ondrej Mandula
Subject: Writing to a file and printing on the screen at the same time

Hi, I need to write some messages into a file but have it printed on the screen at the same time. One command for those two:

fprintf(fid, 'message');
fprintf('message');

Any ideas please?