- Q = trapz(_,dim) integrates along the dimension dim using any of the previous syntaxes.
How to integrate across row values?
2 次查看(过去 30 天)
显示 更早的评论
I have an array of size 180*10, and I want to find AUC score of values across rows by applying trapz function.How to make loop to integrate across rows?
0 个评论
采纳的回答
Star Strider
2017-8-31
From the documentation:
So to integrate across rows, use 2 for ‘dim’.
1 个评论
KALYAN ACHARJYA
2017-9-1
编辑:KALYAN ACHARJYA
2017-9-1
%
X=[ 1 2 3 4 5 7....];
Result=trapz(X,2);
% Gives Integrate result
%
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!