Undefined function or method 'markers2' for input arguments of type 'double'

조회 수: 2 (최근 30일)
sana
sana 2013년 10월 15일
댓글: sana 2013년 10월 20일
I get this error when ever i run the code below
scatter(data(1,clusters{cc}), data(2,clusters{cc}), ...
markers2(which_marker));
The problem is i don't what markers2 is doing and how can i remove this error.
  댓글 수: 2
Image Analyst
Image Analyst 2013년 10월 15일
Search your entire code and all other m-files in the folder or search path. Use "Find Files" button. Did it find markers2 anywhere else?
sana
sana 2013년 10월 20일
thanks, i used another function instead of markers!!!

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

채택된 답변

Jonathan LeSage
Jonathan LeSage 2013년 10월 15일
You're calling a function, markers2. Since this is not a standard MATLAB function, you should have a file in your directory named 'markers2.m'. If not, this line of code will not work.
If you remove markers2, you can at least plot your data.
scatter(data(1,clusters{cc}), data(2,clusters{cc}))
Consult the documentation for scatter for additional help with other acceptable inputs.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Change Markers에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by