Plot scatterplot showing row and column numbers

2 ビュー (過去 30 日間)
Damith
Damith 2014 年 6 月 12 日
編集済み: Azzi Abdelmalek 2014 年 6 月 12 日
Hi,
A=[1.0 0.7 0.6 0.5
0.8 1.0 0.5 0.1
0.2 0.3 1.0 0.2
0.1 0.8 0.6 1.0];
I need to plot a scatter
X Y
A(2,1) A(1,2)
A(3,1) A(1,3)
A(4,1) A(1,4)
. . likewise, But I need to show numbers in the scatterplot as row and col. Can somebody suggest me a way to do it?
Thanks in advance,

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 6 月 12 日
編集済み: Azzi Abdelmalek 2014 年 6 月 12 日
scatter(A(2:end,1),A(1,2:end))

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by