how show weights with different color
Show older comments
Hi,
I would like to plot lines with different weights and visualize weights with color. For example,
x = 1:100;
y = rand(50,100);
weight = rand(100,1);
plot(y,x)
x is x-axis coordinate, y is y-axis coordinate and weight is the weights for these 100 lines. I wish to plot these lines with the color proportional to the weight. Could anybody give me an idea on this? Thanks in advance.
Accepted Answer
More Answers (0)
Categories
Find more on Annotations in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!