3/31/2024 0 Comments Matlab colormapMATLAB makes it very easy to generate custom maps by offering two possibilities: The one is to use the colormap editor GUI The other is to do a bit of typing and use your brain at the same time! Note that to recall the default color map single quotes are need (for yet another unknown reason!)įrequently the predefined color maps are not sufficient to generate a useful graphic in a quantitative sense. To change the colormap to another predefined one you can use the function colormap. The spectrogram is displayed with the default colormap which is very good for general purpose display of information. You can calculate the time - frequency spectrogram of the signal using the function spectrogram (which replaced the function specgram available in older releases All these name changes are annoying.) Also use the function colorbar to display the current colormap. Say you have an RF signal (40 MHz sampling frequency) in vector x: However, it is very easy to generate your own color maps in order to highlight (or mask) particular aspects of an image. My favorite maps are: default, bone, gray, hot. MATLAB offers a number of color maps (I think 17 on R2008b) which are well thought out.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |