how to select a submatrix A from B based on indexes of matrix C intersected with D
Show older comments
Hello,
this is my situation: I have 3 matrices Numbers of size AxB contains values Dates of size AxB contains dates Dates2 of size Cx1 (C<=A, D<=B) contains dates
I would need to create matrix
Numbers2 of size CxB
that is a submatrix of Numbers, containing only the values whose associated date in matrix Dates is contained in matrix Dates2
thanks in advance
1 Comment
Oleg Komarov
on 3 Sep 2012
Please, post an example: much easier to understand.
Answers (0)
Categories
Find more on Logical 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!