vector of X values contains duplicate values

10 ビュー (過去 30 日間)
maxence rateaux
maxence rateaux 2018 年 4 月 23 日
回答済み: Benjamin Großmann 2018 年 4 月 23 日
I would like to plot an heatmap (with polar coordinate rho/theta) but when I plot the heatmap i've got this error message: "vector of x values contains duplicate values"
heatmap (rho, theta, Latency)

回答 (1 件)

Benjamin Großmann
Benjamin Großmann 2018 年 4 月 23 日
The heatmap functions first two arguments are in this context the labels for the x-axis and y-axis. These have to be unique and can also be of char type. I.e.
heatmap({'A','B','C'},[5 6 7],rand(3))

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by