Be the first to rate this file! 98 downloads (last 30 days) File Size: 5.49 KB File ID: #22261

Open and close a job

by Miroslav Balda

 

27 Nov 2008 (Updated 26 Feb 2009)

Code covered by BSD License  

The couple of functions frees user from a dull work on file handling.

Download Now | Watch this File

File Information
Description

It is always good to have tools at disposal, which relieve work on building a program. Two parts of any program deserve a special attention, ie. the beginning and the end. It is important especially in cases, when it is necessary to handle data stored in a file, prosess it, create figures and make record on results, and at last to store them for documentation purposes. Two functions, openjob and closejob, which fulfill the task, are presented here.

The function >>openjob<< enables to browse tree of data files, find and pick a required data file for processing, start recording and return path and file name of a selected file.

The function >>closejob<< finishes the task. It closes diaring and, if required, saves it as a record from the data processing. Afterwards, it saves figures (if any) in selected multiple formats. Both records and figures are stored in required directories, which are created, if don't exist.

The set is complemented by the script testjob which shows how to use both functions.

In case of bugs, please, inform the author by e-mail.

MATLAB release MATLAB 7.3 (R2006b)
Other requirements The set needs the following functions from FEX: inp (Id 9033), freename (Id 9036), savefig (Id 10889), separator (Id 11725), and the Ghostcript program gswin32c.exe.
Zip File Content  
Other Files closejob.m,
openjob.m,
testjob.m
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
21 Dec 2008

Improved code of closejob, slight changes in testjob.m and description.

03 Jan 2009

Implemented a test on presence of the program gswin32c.exe on the system path, and slight changes in the function code and description.

26 Feb 2009

openjob: Syntax has been extended.
closejob: Improved code in generating names of stored figures. Removed bug in trying to store a nonexisting figure.

26 Feb 2009

Replaced old file job.zip

Tag Activity for this File
Tag Applied By Date/Time
data import Miroslav Balda 01 Dec 2008 14:16:24
data export Miroslav Balda 01 Dec 2008 14:16:24
measurement Miroslav Balda 01 Dec 2008 14:16:24
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com