I have a code working for displaying dicom images..
i want to display these in GUI, with help of pushbutton
please help me..
thanks in advance!!
the code is
files = dir(fullfile('C:','Program Files','MATLAB','images\*.dcm'));for i = 1 : numel(files)[X, map] = dicomread(fullfile('C:','Program Files','MATLAB','images',files(i).name));if ~isempty(map)subplot(2,2,i);subimage(X,map);elsesubplot(2,2,i);imshow(X, map);endend
Best Answer