2017/04/06

Matlab: Draw a grayscale

>> a = [0 40 80 120 160 200 220 255];
>> b = [a;a;a;a;a;a;a;a];
>> colormap('gray');
>> imagesc(b)


Result:


沒有留言:

張貼留言