Drawing a coloured line into a 2D coordinate System
Show older comments
Hello people,
I want to draw a 2D coordinatesystem containing a coloured line were the colour is defined by a value. I'll try to explain it in a mathematic way here:
We have a 2D Matrix M containing real numbers. The graph f is then defined as follows:
f(x,y) = C(M[x][y]) , where C(M[x][y]) returns a colour depending on M[x][y]
The smaller M[x][y], the greener the color and the larger M[x][y], the redder the number.
I already found imagesc but it seems that it does not fit my purpose.
Thanks in advance!
Accepted Answer
More Answers (0)
Categories
Find more on Blue in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!