フィルターのクリア

How to integrate across row values?

2 ビュー (過去 30 日間)
Bubblesjinx
Bubblesjinx 2017 年 8 月 31 日
編集済み: KALYAN ACHARJYA 2017 年 9 月 1 日
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?

採用された回答

Star Strider
Star Strider 2017 年 8 月 31 日
From the documentation:
  • Q = trapz(_,dim) integrates along the dimension dim using any of the previous syntaxes.
So to integrate across rows, use 2 for ‘dim’.
  1 件のコメント
KALYAN ACHARJYA
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 件)

カテゴリ

Help Center および File ExchangeNumerical Integration and Differentiation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by