MATLAB warning with Trapz
Show older comments
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
Answers (1)
Star Strider
on 5 Sep 2020
0 votes
The dim (dimension) argument is the last argumen to trapz. See Integrate Matrix with Nonuniform Spacing for an illustration. .
Categories
Find more on Numerical Integration and Differentiation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!