source: aedes_getmatlabversion.m @ 133

Last change on this file since 133 was 133, checked in by tjniskan, 9 years ago
  • Fixed the Matlab version detection bug
  • Added zoom function to mouse wheel
  • Fixed a bug in contrast auto-balancing

M aedes_getmatlabversion.m
M aedes_resviewer.m
M aedes.m
M aedes_res2table.m
M aedes_revision.m
M aedes_juigetfiles.m

File size: 1.2 KB
Line 
1function version_number = aedes_getmatlabversion()
2% AEDES_GETMATLABVERSION - Returns the numerical Matlab (main) version
3%   
4%
5% Synopsis:
6%       version_number = aedes_getmatlabversion;
7%
8% Description:
9%       Returns the numerical Matlab (main) version (e.g. 7.6)
10%
11% Examples:
12%       version_number = aedes_getmatlabversion;
13%
14% See also:
15%       
16
17% This function is a part of Aedes - A graphical tool for analyzing
18% medical images
19%
20% Copyright (C) 2006 Juha-Pekka Niskanen <Juha-Pekka.Niskanen@uku.fi>
21%
22% Department of Physics, Department of Neurobiology
23% University of Kuopio, FINLAND
24%
25% This program may be used under the terms of the GNU General Public
26% License version 2.0 as published by the Free Software Foundation
27% and appearing in the file LICENSE.TXT included in the packaging of
28% this program.
29%
30% This program is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
31% WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
32
33version_str = version;
34ind = find(version_str=='.');
35major_ver = str2double(version_str(1:ind(1)-1));
36minor_ver = str2double(version_str(ind(1)+1:ind(2)-1));
37version_number = str2double(sprintf('%d.%02d',major_ver,minor_ver));
Note: See TracBrowser for help on using the repository browser.

Powered by Trac 1.0.9.Copyright © Juha-Pekka Niskanen 2008