DIPimage version #143
-
Is there an easy way to find the version of DIPimage / DIPlib used in MATLAB?
but I only found (not recommended) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Using
[Note that the syntax You could also do something like |
Beta Was this translation helpful? Give feedback.
Using
ver('DIPimage')
is a good approach. The only problem withstr2double(myDipVer.Version(1:3))
is that this will stop working for version 3.10. I would consider looking only at the first character, see if it's a 2 or a 3.strsplit(ver('DIPimage').Version,'.')
returns a cell array{'major', 'minor', 'patch'}
.cellfun(@str2double,strsplit(ver('DIPimage').Version,'.'))
returns a regular numeric array[major, minor, patch]
.[Note that the syntax
ver('DIPimage').Version
works only in fairly recent MATLAB versions, for older versions you need to assign the output ofver()
to a variable before you can do the dot indexing.]You could also do something like
exist('dip_percentile','file')
when c…