How to search a element or a number in lookup table
3 views (last 30 days)
Show older comments
hi, How to make a LUT of 2-dimensional, and also how to search a number or an element in the developed lookup table by using simple matlab commands( not using simulink preferably)?
thanks, sridhar
2 Comments
the cyclist
on 5 Jul 2012
There are many possible approaches to making something like a lookup table in MATLAB. I suggest you add significant more detail to your question, so that we can narrow the suggestions we might make.
Answers (1)
Walter Roberson
on 7 Jul 2012
[mindiff, row] = min( (YourTable(:,2) - V1).^2 + (YourTable(:,3) - V2).^2 );
0 Comments
See Also
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!