Skip to content

DIPimage version #143

Answered by crisluengo
AndreZeug asked this question in General
Discussion options

You must be logged in to vote

Using ver('DIPimage') is a good approach. The only problem with str2double(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 of ver() to a variable before you can do the dot indexing.]

You could also do something like exist('dip_percentile','file') when c…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by crisluengo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants