Comparing 2 matrix with different size
Show older comments
Hi there! I am starting with matlab and I am a mess now.. I have a matrix A (69497x3) with latitude, longitude and depth, like:
-20.32245 54.00025 -4852
-20.33474 54.02638 -4352
-20.34776 54.05798 -3127
...
and a matrix B (601x601) with depth values. (I know the coordinates, latitude from -17º to -23º South, and longitude from 54º to 60º East)
-4600 -4589 -4572 -4555...
-4592 -4579 -4563 -4546...
...
I would like to find the values of matrix A on matrix B and generate a vector with the difference of the values. the number of values on A is lower than on B so the result should only contain the difference if there value exist in both matrix.
Thanks in advanced!
2 Comments
Azzi Abdelmalek
on 13 Jul 2016
Can you post the expected result for the example you posted?
Maite M.
on 13 Jul 2016
Accepted Answer
More Answers (0)
Categories
Find more on Coordinate Reference Systems 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!