How can I plot an image in matlab. This is giving me a Black png image!
Show older comments
URL ='http://structures.wishartlab.com/molecules/HMDB00126/image.png'
filename='test.png'
urlwrite(URL,filename)
[y,z]=imread(filename,'png');
figure, imshow(y);
colormap(z)
This is giving me a Black image! How can i Plot it without getting all black?
2 Comments
sixwwwwww
on 4 Dec 2013

I am getting this image from your code. Is it correct?
Rafael Freire
on 4 Dec 2013
Accepted Answer
More Answers (1)
barbara anderson
on 15 Apr 2020
0 votes
Convert it into greyscale image and plot it.
Categories
Find more on Lighting, Transparency, and Shading in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!