フィルターのクリア

How to compute number of points in each cell of a scatter plot

3 ビュー (過去 30 日間)
RAHIBA
RAHIBA 2015 年 3 月 7 日
コメント済み: Star Strider 2015 年 3 月 11 日
Hello, As a part of my project, I want to extract the state space point distribution features from speech signal. I get the scatter plot of reconstructed state space. Then I want to compute number of points in each cell from that scatter plot. Please help me to compute number of points in each cell of that scatter plot.Please assist. Thanks in advance. Rahiba
clear;
clc;
[x,Fs]=wavread('C:\Users\raiba\Desktop\project\database\1\1\3.wav');
Y=get_delay_vector(x,2,1);
plot(Y(:,1),Y(:,2));
set(gca, 'XTick', [-1:0.1:1])
set(gca, 'YTick', [-1:0.1:1])
scatterplot(Y);
set(gca, 'XTick', [-1:0.1:1])
set(gca, 'YTick', [-1:0.1:1])
grid on;
function Z=get_delay_vector(data,embed_dimen,delta)
data_size=size(data);
if data_size(1)<data_size(2)
data=data';
end
data_size=size(data);
Z=zeros(data_size(1),embed_dimen);
for i=1:embed_dimen
Z(:,i)=circshift(data,[-(i-1)*delta,0]);
end
end

採用された回答

Star Strider
Star Strider 2015 年 3 月 7 日
The inpolygon function would be my first approach to do what you want. You would have to iterate over all your cells.
  2 件のコメント
RAHIBA
RAHIBA 2015 年 3 月 11 日
Thank you very much sir. I have very useful this function.
Star Strider
Star Strider 2015 年 3 月 11 日
My pleasure!

サインインしてコメントする。

その他の回答 (1 件)

Image Analyst
Image Analyst 2015 年 3 月 7 日
There are some 2D histogram functions you could use: http://www.mathworks.com/searchresults/?c[]=entire_site_en&q=hist2

カテゴリ

Help Center および File ExchangeDescriptive Statistics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by