You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
VLOOKUP the function as vlookup in Excel
[content, index] = vlookup(m, e, column, lookcolumn) look for 'e' in the 'lookcolumn'-th column of 'm', and return the coresponding 'column'-th element of 'm' in the same row.
the 'm' could be a numeric matrix of a cell matrix.
lookcolumn is 1 by default if omitted.
Example:
m = {1, 'a', [2 3];
2, 'b', 'cd'
3, 'a', true;};
[content, index] = vlookup(m, 'a', 3, 2) then
content = {[2 3], 1};
index = [1;3]
Cite As
Zhiqiang Zhang (2026). vlookup - similar to MS Excel function (https://www.mathworks.com/matlabcentral/fileexchange/29233-vlookup-similar-to-ms-excel-function), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: complete vlookup function - similar to Excel - both tab/mat, VLOOKUP
General Information
- Version 1.0.0.0 (1.57 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
