dbscan clustering error.

I have a data set Liverxl I attached here. I apply dbscan to this dataset but it didn't give any cluster output, only a value -1. What is the problem with it? Please help me.
clc;
clear;
data=xlsread('Liverxl.xlsx');
asc=sort(data);
minpts=6;
epsilon=4;
[idx, corepts] = dbscan(asc,epsilon,minpts);
gscatter(asc(:,1),asc(:,2),idx);

1 Comment

Your datasets include both values and strings, could be it the problem?

Sign in to comment.

Answers (0)

Categories

Find more on Statistics and Machine Learning Toolbox in Help Center and File Exchange

Asked:

on 6 Mar 2020

Commented:

on 18 Apr 2020

Community Treasure Hunt

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

Start Hunting!