MATLAB: How to create a black image create image how can i create a black image, not a gray one? Best Answer Can you use imshow?If you have to use imagesc, keep in mind that an image has to have values for R, G and B for each pixel. That means you matrix needs to be 256x64x3.Try using imagesc with thisimg=zeros(256,64,3,'uint8'); Related SolutionsMATLAB: How to create a white image Try this to create a grayscale image:whiteImage = 255 * ones(N, M, 'uint8');imshow(whiteImage);To create an RGB image, try this:whiteImage = 255 * ones(480, 640, 3, 'uint8');imshow(whiteImage); MATLAB: Is the image appearing in a new figure rather than its designated GUI axis I found the issue. Should your code be sound and your plots are not present on your GUI, open guide and go to Tools-> Application Options-> Set Command Line Accessibility to On. Related Question
Best Answer