How to calculate the standard deviations of each row of an array and get those as a 1-D array?
58 次查看(过去 30 天)
显示 更早的评论
How to calculate the standard deviations of each row of an array and get those as a 1-D array?
0 个评论
采纳的回答
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)
更多回答(2 个)
Jan
2015-6-24
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.
0 个评论
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
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrices and Arrays 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!