input for function drawgraph(coords)

1 次查看(过去 30 天)
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 个评论
Akiva Gordon
Akiva Gordon 2012-11-16
What is the error message that you are seeing? And where are you finding this example? This is not a built-in MATLAB function.

请先登录,再进行评论。

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by