Is there any function in Matlab that can serve as "VLOOKUP" of Excel?
63 views (last 30 days)
Jennifer Arellana on 27 Apr 2021
I am making a model that gives me this information:
7×2 cell array
The problem I have is that I need these results to have the following order (just look at column 1 to understand the order):
7×1 cell array
I think that a solution could be something like what the Excel function "VLOOKUP" does, the logic of this is that it looks for each value of column 1 of the aux2 array in column 1 of the final array1 and assigns the value of column 2 of the aux2 array in the order of column 1 of the final array1.
This is an idea but if you can think of a better way, I would appreciate any help, thanks!