|
|
| A_DEMO_OF_Cef2Mat_v1_06.m |
%------------------------------------------------------------------------%
% Program : DEMONSTRATION PROGRAM of the Cef2Mat function (v1.06) %
%------------------------------------------------------------------------%
% Purpose : To demonstrate the use of the Cef2Mat import function. %
% %
% The first time this program is run it loads a measurement %
% file written in the ITU recommended "Common Exchange %
% Format V2.0" into MatLab workspace; %
% %
% If you run the program a second time to load the same %
% CEF 2.0-file, you will find it loads very fast. %
%------------------------------------------------------------------------%
% MatLab code version: 7.3 [R2006b] %
%------------------------------------------------------------------------%
% External functions used: Cef2Mat (v1.06) %
%------------------------------------------------------------------------%
% Creation / modification history: %
% 2008-08-07 - v1.05 - B.A.Witvliet - creation %
% 2008-08-25 - v1.06 - B.A.Witvliet - adapted for Cef2Mat v1.06 %
%------------------------------------------------------------------------%
% Conventions: %
% - Every new author adds to the modification history, but does never %
% erase names of earlier contributors. %
% - Arrays start with a capitol letter, single variables and single %
% variables don't. %
% - Main program names are all capitals, functions names only start %
% with a capital. %
% - Subprograms are always functions, not scripts. %
% - Global variables are avoided. %
% - This script may be used freely as long as the author is given %
% proper credit. %
%------------------------------------------------------------------------%
clear; %clear workspace (memory)
clc; %clear command window (default I/O screen)
close all; %close graphic figures if any
% ----------------------------------
% FILENAME (select for testing)
% ----------------------------------
filename='Demo_CEF2.0_multi_scan_multiple_days_file';
%filename='Demo_CEF2.0_multi_scan_file';
%filename='Demo_CEF2.0_single_scan_file';
% -----------------------------
% SOURCE DIRECTORY
% -----------------------------
rootdir=pwd; % Choose at will. Here current directory is used as root directory
datadir=rootdir; % Choose at will. Here data directory is same as rootdir.
% ----------------------------------
% DEMO LOAD FILE INTO WORKSPACE
% ----------------------------------
tic;
[Header,Data,err,errmsg] = Cef2Mat_v1_06(filename,datadir);
toc;
disp(['Result: ' errmsg]);
|
|
Contact us at files@mathworks.com