Auto generated scatter plot takes four argument instead of two
Mostrar comentarios más antiguos
I was trying to create a scatter plot from an excel file and autogenerate the code of the figure. Everything works fine but while trying to autogenerate the code it generates four arguments in its code instead of two which I selected during creating the figure. So When I call the function to re-create the figure it shows error. How can I solve the problem. One solution is two erase 2 arguments manually from auto generated code. But what is wrong with the auto-generated code.
Thanks in advance.

3 comentarios
Walter Roberson
el 3 de Nov. de 2019
The third input is the point size. It is safe to pass in [] to get it to use the default.
The fourth input is the color information. Unfortunately you cannot pass [] to get it to use the default. If you want to have all the points the same color, you can pass in the color specification; otherwise you should pass in a vector of values that will be used to figure out the relative position in the color map.
Syed Mohammad
el 4 de Nov. de 2019
Walter Roberson
el 4 de Nov. de 2019
I do not know. I have rarely used autogeneration of figure code.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!