Download presentation
Presentation is loading. Please wait.
Published byEric Armstrong Modified over 9 years ago
1
A L I MAM M OHAMMAD B IN S AUD I SLAMIC U NIVERSITY C OLLEGE OF S CIENCES D EPARTMENT OF M ATHEMATICS MATLAB 251 : MATH SOFTWARE Introduction to MATLAB
2
4. Graphics in MATLAB 4.7 Color Maps Matlab uses a matrix called colormap to color surfaces or images. The colormap is a list of triplets corresponding To the intensities between 0 and 1 of the red, green and blue You can create your own colormaps or use any matlab predefined colormaps
3
I NTRODUCTION TO M ATLAB hsv hot gray bone copper pink white flag lines colorcube jet prism cool autumn spring winter summer hsv hot gray bone copper pink white flag lines colorcube jet prism cool autumn spring winter summer Carry out the following commands and observe >>peaks; >>colormap(gray(8)) >>m = gray(8); >>imagesc(colormap(m))
4
I NTRODUCTION TO M ATLAB 4.8 Specialized graphs
5
I NTRODUCTION TO M ATLAB >> t = [-2:2]’; >> y = [5 2 1; 8 7 3; 9 8 7; 5 5 5;4 3 2];
6
I NTRODUCTION TO M ATLAB >> bar(t,y) >> bar(t,y,’stack’)
7
I NTRODUCTION TO M ATLAB >> bar3(t,y) >> area(t,y)
8
I NTRODUCTION TO M ATLAB >> pie([31 15 8]) >> hist(randn(1000,3))
9
I NTRODUCTION TO M ATLAB
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.