Borrar filtros
Borrar filtros

scatter not ploting matrix

4 visualizaciones (últimos 30 días)
Gabriel Stanley
Gabriel Stanley el 15 de Sept. de 2021
Respondida: Dave B el 15 de Sept. de 2021
So the documentation for scatter explicitly states it can accept matrix inputs for Y, however when I try to do this matlab rejects my input ("Error using scatter (line 78) X and Y must be evctors of the same length.").
Was this functionality introduced after R2019b, is the documentation wrong, or am I reading it wrong? I've repeatedly checked that my data matches in one dimension as noted in the documentation (X is a 1600x1 vector, Y is a 1600x10 matrix), so that's not the problem

Respuesta aceptada

Dave B
Dave B el 15 de Sept. de 2021
Yes this functionality was just recently introduced in R2021a
The relevant section from the release notes reads:
Scatter Plots and Constant Lines: Create multiple scatter plots or constant lines at once
  • The scatter, polarscatter, and swarmchart functions now accept the same combinations of matrices and vectors as the plot function does. As a result, you can visualize multiple data sets at once rather using the hold function between plotting commands.

Más respuestas (0)

Categorías

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

Etiquetas

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by