how to generate image pixel value in notepad

Answers (2)

use dlmwrite command
I=imread('rice.png'); dlmwrite('data.txt',I)
You can use fprintf() to print any array to a text file. See example in the help.

Categories

Find more on Images in Help Center and File Exchange

Products

Asked:

on 13 Dec 2013

Answered:

on 13 Dec 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!