I want to get the RGB value of the selected color from ColorPicker in Matlab. For example to display the ColorPicker I use:
pp2 = com.mathworks.mlwidgets.graphics.ColorPicker(0,0,'');
[j1,c1]=javacomponent(pp2,[450,260,30,20],gcf);
After that, how can I get the selected value?