How can I find the Difference between the Min and Max of all matching cells over different matrices?
33 views (last 30 days)
Show older comments
Robert on 1 Oct 2014
Commented: Ameya Tambe on 10 Aug 2020
Basically I have 12 matrices each for a month of the year (33x45). For each cell I want to know the difference between the max and min values recorded for the entire year.
I then want an output that is another matrix with the resulting differences in the appropriate cells.
Thanks in advance for any assistance :)
Image Analyst on 8 Oct 2014
Cells? Is the array a cell array or just a regular double numerical array? It's an important distinction regarding how you need to reference the cells or elements.
Mohammad Abouali on 8 Oct 2014
Edited: Mohammad Abouali on 8 Oct 2014
so do this
Amplitude would be what you are asking.
More Answers (1)
Aslak Grinsted on 1 Oct 2014
I would put the 12 matrices in a 33x45x12 matrix.
Then you can simply call
the '3' refers to take the maximum along the 3rd dimension of x.
Find more on Operators and Elementary Operations 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!