Graph data series with colors
조회 수: 2 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
답변 (1개)
Chunru
2021년 7월 28일
load data.txt
scatter(data(:,1), data(:,2), [], data(:,3), 'filled'); colorbar;
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!