input for function drawgraph(coords)

1 Ansicht (letzte 30 Tage)
Amanda
Amanda am 16 Nov. 2012
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 Kommentar
Akiva Gordon
Akiva Gordon am 16 Nov. 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.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Matt Fig
Matt Fig am 16 Nov. 2012
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.

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Tags

Noch keine Tags eingegeben.

Community Treasure Hunt

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

Start Hunting!

Translated by