How to search a element or a number in lookup table
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.
Reddy
on 6 Jul 2012
Edited: Walter Roberson
on 7 Jul 2012
Answers (1)
Walter Roberson
on 7 Jul 2012
[mindiff, row] = min( (YourTable(:,2) - V1).^2 + (YourTable(:,3) - V2).^2 );
Categories
Find more on Powertrain Blockset 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!