필터 지우기
필터 지우기

search in Lookup table.

조회 수: 1 (최근 30일)
Reddy
Reddy 2012년 7월 6일
hi, I have to develop a search in lookup table, the following task has to be performed. suppose assume the following lookup table as an example.
deg sine_value cosine_value; 0 0 1; 30 0.5 0.866; 45 0.707 0.707; 60 0.866 0.5 ; 90 1 0;
with the above lookup table as reference, i need to locate a sine_value first, and then i need to search for cosine value which matches with the row of sine_value. After both the values are retrieved then, the corresponding angle should able to retrieved in the angle column.
for example: first a search is made to find a value 0.5 in sine_value column, then a search is made to find a value 0.866 in cosine_value column. if both lies in same row then, the corresponding value in the angle column is retrieved... can u please help me how to develop this logic in mat lab( using simple mat lab commands).

답변 (1개)

Fa Fa
Fa Fa 2012년 8월 8일
Hi,i like to understand this function in matlab, f = @(x) (sum(x(:)) >= 2); lut = makelut(f,2);
the Question:how he get the result from 0 to 15; 0 0 0 1 0 1 etc;
Thank for help

카테고리

Help CenterFile Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by