input for function drawgraph(coords)

조회 수: 1 (최근 30일)
Amanda
Amanda 2012년 11월 16일
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