Graph data series with colors

1 回表示 (過去 30 日間)
ignacio bobadilla tapia
ignacio bobadilla tapia 2021 年 7 月 27 日
回答済み: Chunru 2021 年 7 月 28 日
Along with say hello, I am attaching a .txt, where the first column is the X axis, the second column is the Y axis, and the third column represents the magnitude.
What I need is a 2D graph of X vs Y, and with a colorbar (color scale) that represents the magnitude of the third column.
Thanks greetings.

回答 (1 件)

Chunru
Chunru 2021 年 7 月 28 日
load data.txt
scatter(data(:,1), data(:,2), [], data(:,3), 'filled'); colorbar;

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by