Code covered by the BSD License  

Highlights from
Status_Display

Be the first to rate this file! 2 Downloads (last 30 days) File Size: 2.42 KB File ID: #26245

Status_Display

by Matt Fetterman

 

02 Jan 2010 (Updated 04 Jan 2010)

simple program that produces a status message with the name of the calling program

| Watch this File

File Information
Description

This program displays a status message along with the name of the calling program or function. For example, if you are running the program Smoky.m, within the program, you could call Display_Status with the string 'Too many variables'.

Display_Status('Too many variables');
Then Display_Status would display:
Smoky.m: Too many variables

It can also be used in the same way as fprintf:
Display_Status('Too many variables:%d',NumVar);

So it is a convenient way to keep track of which program the status update is coming from. Could be useful for complex programs with many subprograms, where you are often changing filenames.

MATLAB release MATLAB 7.7 (R2008b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
04 Jan 2010

modified so that it can be used like fprintf with input variables

Tag Activity for this File
Tag Applied By Date/Time
debugging tool Matt Fetterman 04 Jan 2010 13:34:19

Contact us at files@mathworks.com