TIA
How about just using one of the pre-defined colormaps that MATLAB
supplies, such as Jet? Plug in an index and you'll get an RGB color
from it.
Really, you need to supply more info. How do we know what color you
want? There are an infinite number of colors that could be generated
from an infinite number of functions. How can I know what function
you'd be happy with?
- ImageAnalyst
Fundamentally, I would like to assign a color to a line proporcionally
to its length. The relation is not direct proportion because I've to
face lines with very different length. But, for example, I would like
that the max line is dark red, the 50% line is orange, the 25% is dark
yellow, and so on using all colours like an altimetric map, but they
could be others, as soon as I can put them in an explaining colorbar.
tnx
Thanks man you solved it! I didn't undertand the use of colormap, but
that is what I need!
Regards