フィルターのクリア

assigning shapes to samples in kmeans algorithm

1 回表示 (過去 30 日間)
Sahaj Sandhu
Sahaj Sandhu 2015 年 3 月 20 日
編集済み: Image Analyst 2015 年 3 月 21 日
Hello,
I am using matlabs built in kmeans function for clustering my emg data into two classes. I got the plot but, I need to add an indiacator for a corresponding time series to make some analysis. for e.g. I want to add * for first ten samples, + for next 10 samples and so on. Can somebody suggest some method ?
For more clarification,
1) i have a matrix 117 X 1
2) through class separation i got three classes, different sizes
3) i want to plot the first ten samples of matrix(1) with a definite shape, irrespective of the class.
4) and similar action on next samples
The code that I used :
i1 = find ( idx == 1 );
x1 = y(i1,:);
plot( x1(:,1), 'r*' )
here y is the original matrix and x1 is the matrix made from first index

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by