fh = plot(clusterer,X,idx)
displays a plot of DBSCAN clustering results and returns a figure handle,
fh. Inputs are the cluster object, clusterer,
the input data matrix, X, and cluster indices,
idx.
Create detections of extended objects with measurements in range and Doppler. Assume the maximum unambiguous range is 20 m and the unambiguous Doppler span extends from Hz to Hz. Data for this example is contained in the dataClusterDBSCAN.mat file. The first column of the data matrix represents range, and the second column represents Doppler.
The input data contains the following extended targets and false alarms:
an unambiguous target located at
an ambiguous target in Doppler located at
an ambiguous target in range located at
an ambiguous target in range and Doppler located at
5 false alarms
Create a clusterDBSCAN object and specify that disambiguation is not performed by setting EnableDisambiguation to false. Solve for the cluster indices.
Use the clusterDBSCANplot object function to display the clusters.
plot(cluster1,x,idx)
The plot indicates that there are eight apparent clusters and six noise points. The 'Dimension 1' label corresponds to range and the 'Dimension 2' label corresponds to Doppler.
Next, create another clusterDBSCAN object and set EnableDisambiguation to true to specify that clustering is performed across the range and Doppler ambiguity boundaries.
Perform the clustering using ambiguity limits and then plot the clustering results. The DBSCAN clustering results correctly show four clusters and five noise points. For example, the points at ranges close to zero are clustered with points near 20 m because the maximum unambiguous range is 20 m.
Clusterer object, specified as a clusterDBSCAN object.
Input data, specified as a real-valued N-by-P
matrix. The N rows correspond to points in a
P-dimensional feature space. The P columns contain
the values of the features over which clustering takes place. For example, a two-column
input can contain Cartesian coordinates x and y,
or range and Doppler.
Data Types: double
Cluster indices, specified as an N-by-1 integer-valued column
vector. Cluster indices represent the clustering results of the DBSCAN algorithm
contained in the first output argument of clusterDBSCAN.
idx values start at one and are consecutively numbered. The plot
object function labels each cluster with the cluster index. A value of –1 in
idx indicates a DBSCAN noise point. Noise points are not
labeled.
Data Types: double
Axes of plot, specified as an Axes object handle.
Data Types: double
Plot title, specified as a character vector or string.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.