Matlab的:添加颜色尺寸图

时间:2020-08-25 13:55:58

标签: matlab

我想基于0:100的值和色标在Matlab中为绘图添加颜色尺寸。

我该怎么做?

我知道使用scatter可以添加颜色尺寸-但是线条无法连接。我知道使用plot可以添加一种颜色,但是不能为每个点添加一种颜色。

x=1:100;
y=randi(100,1);
c=fliplr(1:100);
plot_with_color(x,y,c) %what is this function?

谢谢,我只是在Google上找不到

0 个答案:

没有答案