Skip to content
Snippets Groups Projects
Commit 61026a28 authored by marwan's avatar marwan
Browse files

toolbox version included

parent 54a3b86c
No related branches found
No related tags found
No related merge requests found
...@@ -14,6 +14,9 @@ function print_error(programme,z,x,y,in,mflag,action) ...@@ -14,6 +14,9 @@ function print_error(programme,z,x,y,in,mflag,action)
% $Revision$ % $Revision$
% %
% $Log$ % $Log$
% Revision 4.8 2009/03/24 08:36:04 marwan
% copyright address updated
%
% Revision 4.7 2004/11/10 07:04:29 marwan % Revision 4.7 2004/11/10 07:04:29 marwan
% initial import % initial import
% %
...@@ -25,6 +28,10 @@ function print_error(programme,z,x,y,in,mflag,action) ...@@ -25,6 +28,10 @@ function print_error(programme,z,x,y,in,mflag,action)
global errcode props global errcode props
% get CRP Toolbox version
tb_path = fileparts(which('crp'));
v = ver(tb_path);
if ~isempty(findobj('Tag','TMWWaitbar')), delete(findobj('Tag','TMWWaitbar')), end if ~isempty(findobj('Tag','TMWWaitbar')), delete(findobj('Tag','TMWWaitbar')), end
if ischar(in), in2=in; else, in2=[]; end if ischar(in), in2=in; else, in2=[]; end
in=whos('in'); in=whos('in');
...@@ -39,6 +46,7 @@ global errcode props ...@@ -39,6 +46,7 @@ global errcode props
err=fprintf(fid,'%s\n',repmat('-',50,1)); err=fprintf(fid,'%s\n',repmat('-',50,1));
err=fprintf(fid,'%s\n',datestr(now,0)); err=fprintf(fid,'%s\n',datestr(now,0));
err=fprintf(fid,'%s\n',['Matlab ',char(version),' on ',computer]); err=fprintf(fid,'%s\n',['Matlab ',char(version),' on ',computer]);
err=fprintf(fid,'%s\n',[v.Name,' ',v.Version,' (',v.Date,')']);
err=fprintf(fid,'%s\n',repmat('-',50,1)); err=fprintf(fid,'%s\n',repmat('-',50,1));
err=fprintf(fid,'%s\n',x); err=fprintf(fid,'%s\n',x);
err=fprintf(fid,'%s\n',y); err=fprintf(fid,'%s\n',y);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment