When I run this code:
>> I = imread(\'D:\\Works\\matlab\\SecCode.php.png\',\'png\');
>> imshow(I);
It always shows an all-black
Ahhh, I see now. The problem is you have an indexed image and need to get the colormap argument from imread as well. Try this:
[I, map] = imread('D:\Works\matlab\SecCode.php.png', 'png');
imshow(I, map);
A description of the different types of images in MATLAB can be found here. Here's a brief summary: