Professional Documents
Culture Documents
COMMANDS IN MATLAB
MATLAB Commands
>> a = imread('filename.extension')
>> whos
>>figure, imshow(a)
>> b = rgb2gray(a);
>> c = imadjust(b)
>> subplot(1,2,1), imhist(b)
>> subplot(1,2,2), imhist(c)
>> d = graythresh(b)
>> max(b)
>> max(max(b))
>> min(min(b))
>> mean(mean(b))
>> im2bw(b)