Undefined function or method 'markers2' for input arguments of type 'double'
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
sana
am 15 Okt. 2013
Kommentiert: sana
am 20 Okt. 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 Kommentare
Image Analyst
am 15 Okt. 2013
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?
Akzeptierte Antwort
Jonathan LeSage
am 15 Okt. 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.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Change Markers finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!