source: aedes_getmatlabversion.m @ 131

Last change on this file since 131 was 131, checked in by tjniskan, 9 years ago
  • Fixed a bug in detecting Matlab version (starting from Matlab R2010a)
  • Added a function that returns a numerical Matlab (main) version (e.g. 7.6)
  • Fix contrast auto-balancing for uint8 and uint16 images (However, int16

images still behave strangely...)

A aedes_getmatlabversion.m
M aedes.m
M aedes_revision.m
M aedes_juigetfiles.m

File size: 1.1 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 = strfind(version_str,'.');
35version_number = str2num(version_str(1:ind(2)-1));
Note: See TracBrowser for help on using the repository browser.

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