plotを使用してグラフの色をデータに応じて変更する方法
Show older comments
line関数を使用して2点を結ぶ直線を引き, それぞれの対応する値により直線の色を変更する方法がわかりません.
scatter関数のように値でグラフの色を変更できる方法を知りたいです.
例)
x y 番号
1 1 1
5 4 2
10 5 3
20 10 4
のようなデータの組があり,
それぞれの点を結ぶ組み合わせで対応する値がありその値により直線の色を変更するプログラムがわかりません.
組み合わせ 値
1-2 0.1
1-3 0.7
1-4 0.01
1-5 0.007
すみませんが, よろしくお願いいたします.
Accepted Answer
More Answers (1)
yuto tamura
on 11 Apr 2020
0 votes
Categories
Find more on グラフとネットワーク アルゴリズム 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!