📄 lut.m
字号:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Property of Freescale
% Freescale Confidential Proprietary
% Freescale Copyright (C) 2005 All rights reserved
% ----------------------------------------------------------------------------
% $RCSfile: LUT.m.rca $
% Tag $Name: $
% $Revision: 1.1 $
% $Date: Fri Dec 1 14:00:29 2006 $
% Target: Matlab
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% LUT creation for fastfeeback
%
function [LUT_SORTED, LUT_SORTED_full, LUTposs, LUTposs2,LUT_NONSORTED] = LUT
LUT=[
0 000000
1 111111
10 222222
11 333333
100 444444
101 555555
110 666666
111 777777
1000 243675
1001 352764
1010 061457
1011 170546
1100 607231
1101 716320
1110 425013
1111 534102
10000 436751
10001 527640
10010 614573
10011 705462
10100 072315
10101 163204
10110 250137
10111 341026
11000 367512
11001 276403
11010 145730
11011 054621
11100 723156
11101 632047
11110 501374
11111 410265
100000 675124
100001 764035
100010 457306
100011 546217
100100 231560
100101 320471
100110 013742
100111 102653
101000 751243
101001 640352
101010 573061
101011 462170
101100 315607
101101 204716
101110 137425
101111 026534
110000 512436
110001 403527
110010 730614
110011 621705
110100 156072
110101 047163
110110 374250
110111 265341
111000 124367
111001 035276
111010 306145
111011 217054
111100 560723
111101 471632
111110 742501
111111 653410 ];
temp = num2str(LUT(:,2)+ones(64,1)*1e6);
temp = str2num(temp(:,2:3));
LUT=[LUT temp];
LUT_SORTED_full = sortrows(LUT,3);
LUT_SORTED = LUT_SORTED_full ;
LUT_SORTED(:,3) = [];
temp = num2str(LUT(:,2)+ones(64,1)*1e6);
LUTposs=[str2num(temp(:,2)) str2num(temp(:,3)) str2num(temp(:,4)) ...
str2num(temp(:,5)) str2num(temp(:,6)) str2num(temp(:,7))];
temp = num2str(LUT(:,1)+ones(64,1)*1e6);
LUTposs2 = str2num(temp(:,2:end));
LUT(:,3)=[];
LUT_NONSORTED = LUT;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -