MATLAB Answers

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

1 view (last 30 days)
sana
sana on 15 Oct 2013
Commented: sana on 20 Oct 2013
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 Comments

Sign in to comment.

Accepted Answer

Jonathan LeSage
Jonathan LeSage on 15 Oct 2013
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.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!