90 likes | 206 Views
Al Imam Mohammad Bin Saud Islamic University College of Sciences Department of Mathematics. MATLAB 251 : MATH SOFTWARE Introduction to MATLAB. mrs. Asra Sultana. Introduction to MATLAB. 4. Graphics in MATLAB. 4.7 Color Maps
E N D
Al Imam Mohammad Bin Saud Islamic University College of SciencesDepartment of Mathematics MATLAB 251 : MATH SOFTWARE Introduction to MATLAB mrs.Asra Sultana
Introduction to MATLAB 4. Graphics in MATLAB • 4.7 Color Maps • Matlab uses a matrix called colormapto 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
Introduction to Matlab 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))
Introduction to Matlab 4.8 Specialized graphs
Introduction to Matlab >> t = [-2:2]’; >> y = [5 2 1; 8 7 3; 9 8 7; 5 5 5;4 3 2];
Introduction to Matlab >> bar(t,y,’stack’) >> bar(t,y)
Introduction to Matlab >> bar3(t,y) >> area(t,y)
Introduction to Matlab >> pie([31 15 8]) >> hist(randn(1000,3))