input for function drawgraph(coords)

There is an example function in MATLAB which is the following:
function drawgraph(coords)
plot(coords(1,:), coords(2,:));
My input is:
coords = [1 2 3; 4 5 6]
but I'm receiving an error?"
What is the purpose of this function?
Amanda

1 comentario

Akiva Gordon
Akiva Gordon el 16 de Nov. de 2012
What is the error message that you are seeing? And where are you finding this example? This is not a built-in MATLAB function.

Iniciar sesión para comentar.

 Respuesta aceptada

Matt Fig
Matt Fig el 16 de Nov. de 2012

0 votos

Are you talking about the function on this page?
There is more to the function that you show! So please, tell the whole story, including the exact text of the error message and how you call the function.

Más respuestas (0)

Categorías

Más información sobre MATLAB Report Generator en Centro de ayuda y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Preguntada:

el 16 de Nov. de 2012

Community Treasure Hunt

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

Start Hunting!

Translated by