Graph.m error - undefined function error Help!

1 次查看(过去 30 天)
I am trying to run a code in my matlab software but it gives me an error. It says:
Undefined function 'graph' for input arguments of type 'double'.
Error in lab2 (line 25)
graph(1,311,t,g,TimeAxes, 't(s)', 'g(t)','a sinusoid');
I am not sure how to fix this. Please help.

回答(2 个)

Image Analyst
Image Analyst 2013-8-18
You need to define graph. Put this line before that line and see what it says
which -all graph

Md.
Md. 2013-8-18
编辑:Md. 2013-8-18
Says
'graph' not found.
  2 个评论
Image Analyst
Image Analyst 2013-8-18
Well, there's your answer.
By the way, you should have put that as a comment to my answer since it's not an Answer in itself to your original question.
Next step: locate graph function, or someone who can provide it to you.
Walter Roberson
Walter Roberson 2013-8-18
As a clarification: graph() is not a MATLAB routine.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Directed Graphs 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by