第1个回答 2011-11-16
% try the following code. you will see the color distribution.
>> a=imread('c:\what.jpg');
>> size(a)
ans =
500 500 3
>> plot3(a(:,1), a(:,2), a(:,3), 'or');本回答被提问者采纳
第2个回答 2017-09-29
plot3(a(:,1), a(:,2), a(:,3), 'or'); 是不是应该改成 plot3(a(:,:,1), a(:,:,2), a(:,:,3), 'or'); ?