How to calculate the standard deviations of each row of an array and get those as a 1-D array?

69 ビュー (過去 30 日間)
How to calculate the standard deviations of each row of an array and get those as a 1-D array?

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2015 年 6 月 24 日
編集済み: Azzi Abdelmalek 2015 年 6 月 24 日
M=rand(4,3)
% std for each row
s1=std(M,[],2)
% std for each column
s2=std(M)
  3 件のコメント
Stephen23
Stephen23 2015 年 6 月 24 日
編集済み: Stephen23 2015 年 6 月 24 日
Any internet search engine will locate these functions for you:
Learn to use the documentation, it is not just there to make the internet more colorful. The documentation explains how functions work, and it has examples too!

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

その他の回答 (2 件)

Jan
Jan 2015 年 6 月 24 日
Such questions are solved exhaustively in the documentation of Matlab: see doc std.
If you do not know the required command, you can look in the "See also" line of similar commands or use docsearch to search for terms inside the documentation. Even asking your favorite internet search engine is a good idea. All of these ideas are faster and more efficient than asking the forum, so it is recommended to try them at first.

jaypal singh
jaypal singh 2019 年 1 月 27 日
dear sir,
I have 90000x13 (table).mat file .
here is 1-80000 is 0 label
and 800001-90000 is 1 label
i have to find avg and std for 0 label seperate and for 1 label seperate

カテゴリ

Help Center および File ExchangeSpecial Functions についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by