vector of X values contains duplicate values

31 visualizaciones (últimos 30 días)
maxence rateaux
maxence rateaux el 23 de Abr. de 2018
Respondida: Benjamin Großmann el 23 de Abr. de 2018
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)

Respuestas (1)

Benjamin Großmann
Benjamin Großmann el 23 de Abr. de 2018
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))

Categorías

Más información sobre Data Distribution Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by