Saving displayed text as text file

I have some certain warnings in my script which appear if a certain condition is fulfilled eg;
G = find(P_Trigger_State == 2);
if (G > 0 );
disp('*****Override Occurred*****');
end;
Is there a way to save the displayed text in a notepad file output?
Thanks

Answers (0)

Categories

Tags

Asked:

on 3 May 2012

Community Treasure Hunt

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

Start Hunting!