I want to find the standard deviation of each data point in the matrix.
    5 ビュー (過去 30 日間)
  
       古いコメントを表示
    
I have a matrix of data, where a majority of the data is close to zero. I want to find the standard deviation of each data point in the matrix. For example, if one point is two standard deviations away from zero I would like its value to represent that. I don't know exactly how the std fuction works but it doesn't appear do do what I want. 
0 件のコメント
採用された回答
  Star Strider
      
      
 2019 年 6 月 13 日
        If you have R2018a or later, use the normalize (link) funciton.  It returns the z-scores of your data.  
Otherwise, this produces the same result as normalize using the 'zscore' method: 
x = randn(10,1);                                    % Create Data Vector
zsc = (x-mean(x))./std(x);                          % Calculate Z-Score
Both operate primarily on columns, or on a single vector.  The normalize function allows you to operate over rows as well.  
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
				Help Center および File Exchange で Descriptive Statistics and Visualization についてさらに検索
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

