Cannot find highlight function

조회 수: 3 (최근 30일)
David McVea
David McVea 2021년 1월 8일
댓글: David McVea 2021년 1월 8일
Hello -
I am trying to use the highlight function to change the properties of some nodes of a graph.
When I use
highlight(g,1)
where g is a graph object, I get the error message "check for missing argument or incorrect argument data type in call to function 'highlight' "
If I try simply
highlight
I get an unrecognized function or variable error.
I do not think highlight is in a toolbox, so why the error? Furthermore when I try
help highlight
I receive the appropriate message.
Thanks.

채택된 답변

Steven Lord
Steven Lord 2021년 1월 8일
The description of the first input argument H listed on the documentation page indicates it must be a GraphPlot object created by calling plot on a graph or digraph. You can't highlight the graph or digraph objects themselves.
  댓글 수: 1
David McVea
David McVea 2021년 1월 8일
Thanks. Makes sense. I was thrown off by the “not found” message when calling it without inputs. Still unsure why that happens as opposed to “not enough inputs” which I expected.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by