MATLAB: About installing Color Inspector

calling imagej pluginscolor inspector

Hello, Image Analyst,
In this link http://www.mathworks.com/matlabcentral/answers/84068-lab-vs-rgb-vs-hsv-color-spaces-for-color-detection you give a way to work with Color_Inspector from inside Matlab.
Unfortunately I could not properly edit the file classpath.txt as you suggested there.
Looks like this description – …
_% First open your classpath <file:_>
% C:\Program Files\MATLAB\R2013a\toolbox\local\classpath.txt
_% for editing. Then add the following lines as new lines to your classpath <file:_>
% C:/Program Files/ImageJ/ij.jar
% C:\Program Files (x86)\ImageJ\plugins\Color\Color_Inspector_3D.jar
… is somehow NOT full.
At least when I run the line
color_inspector(fullFileName)
I get the answer from Matlab –
Undefined function 'color_inspector' for input arguments of type 'char'.
Error
color_inspector(fullFileName)
What is wrong?
Before that everything works nicely – I find the file C:\Program Files (x86)\ImageJ\plugins\Color\Color_Inspector_3D.jar
The lines in classpath.txt look like:
# Java classpath entries for 3p/animatedtransitions$matlabroot/java/jarext/AnimatedTransitions.jar
Possibly I also should add at the end not simply something like
% C:\Program Files (x86)\ImageJ\plugins\Color\Color_Inspector_3D.jar
?
M.

Best Answer

The "%" character was only placed by IA in order to be a comment in the Matlab function... What IA basically said is that your classpath.txt file (or the javaclasspath.txt file) should contain lines such as:
# This is a classpath.txt comment line, you can write anything here...
C:/Program Files/ImageJ/ij.jar
C:/Program Files/ImageJ/plugins/Color/Color_Inspector_3D.jar
Of course, you will need to modify the folder paths if your ImageJ is installed in some other disk folder. After you update your classpath.txt (or javaclasspath.txt) file, you will need to restart Matlab, since these files are only loaded into Matlab memory when Matlab starts.
Related information in case you still encounter problems:
Related Question