Need help!!! Set up the following colormap: black; white ;red ; green ; blue Cre
ID: 2866477 • Letter: N
Question
Need help!!!
Set up the following colormap: black; white ;red ; green ; blue
Create an array of random integers from 1 to 4 and display the array using the image
command with the colormap above. Which color does not appear? Why? Now display the
same array with the same colormap but use the command imagesc. Which color does not
appear now? Why? (Hint: Using colorbar will visually display the mapping being used)
Create an array of random floating point numbers from 1 to 4 and, using the same
colormap, use imagesc to display the values in the array. Calculate exactly the mapping
from values in A to the five colors - which values go to which colors - explain.
It is about matlab.Please write down the detail things.
Thanks a lot!!
Explanation / Answer
CData
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.