from
Smart text separator
by Miroslav Balda
A tool for design of neat apperance records on data processing.
|
| dettest.m |
% dettest Script for testing function detach.m
%%%%%%%%%% 2008-08-14
%
% The purpose of the function detach is to separate text outputs on the
% screen and in records on data processing by a smart separator. It is
% reasonable to start the fist use of the function detach either by
% a call with a full set of input arguments, or by a call detach('RESET')
% which sets default values for control variables.
%
% The script tests different calls of the function detach.m, and shows also
% possible applications of it. The sequence of following calls of the
% function is interlaced by callings of the function txt.m built just for
% the purpose to show forms of outputs under different conditions.
%
% Miroslav Balda
% miroslav AT balda DOT cz
% 2008-08-14 v 1.0
diary on, diary off, delete diary, diary on
txt
detach('RESET') % ASDFGHJKL;ASDFGHJKL;
txt
detach % --------------------------------------------------
txt % ASDFGHJKL;
detach('EXAMPLE') % -------------------- EXAMPLE ---------------------
txt % ASDFGHJKL;
detach(date,'=') % ================== 15-Aug-2008 ===================
txt % ASDFGHJKL;
detach([mfilename ', ' date],'@') % @@@@@@@@@@@@@@ dettest, 15-Aug-2008 @@@@@@@@@@@@@@
txt % ASDFGHJKL;
detach('only text',' ') % only text
txt % ASDFGHJKL;
detach('text','*') % ********************** text **********************
txt
detach('anything','=',7,0,0) % ASDFGHJKL;== anything ==ASDFGHJKL;
txt
detach('text','','',2,2) % ==== text ====
txt
disp(' ') % ASDFGHJKL;
diary off
|
|
Contact us at files@mathworks.com