How to search a element or a number in lookup table
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
the cyclist
2012-7-5
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.
回答(1 个)
Walter Roberson
2012-7-7
[mindiff, row] = min( (YourTable(:,2) - V1).^2 + (YourTable(:,3) - V2).^2 );
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Whos 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!