I had tried the following demo code in Matlab. I'm using Matlab 2018b
load('spiralVol.mat');
h = volshow(spiralVol);
But I'm getting a black screen.imshow() is working properly. Is it related to opengl? i tried opengl software and opengl hardware
Is it a bug in matlab 2018b? or is it related to my system configuration
The black screen is sometimes an issue due to bad graphics driver. Try updating the driver to its latest version.
Alternately, Image Processing Toolbox has a 'VolumeViewerUseHardware' preference setting which tells it not to use the graphics card while rendering. Try setting it to false and see if it resolves the issue: iptsetpref