MATLAB warning with Trapz

3 次查看(过去 30 天)
keerthi appala
keerthi appala 2020-9-5
hi i have used the following code
norm_ms_all = ms' / trapz(trapz(ms').
Matlab has issued a warning "Instead of using transpose ('), consider using a different DIMENSION input argument to TRAPZ".
How to correct this?
Thanks in advance

回答(1 个)

Star Strider
Star Strider 2020-9-5
The dim (dimension) argument is the last argumen to trapz. See Integrate Matrix with Nonuniform Spacing for an illustration. .

类别

Help CenterFile Exchange 中查找有关 Numerical Integration and Differentiation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by