1-D Lookup Table- Output Formatting

조회 수: 2 (최근 30일)
Uygar Tolga Kara
Uygar Tolga Kara 2020년 5월 6일
편집: Navya Seelam 2020년 5월 13일
Hello everyone,
The 1-D Lookup Table Properties are:
Table Data= 0:12:360
Breakpoints 1= 0:1:30
So, the coupled values are= 0-0, 1-12, 2,24, ... , 30- 360
As input, I am supplying integers (timeseries) which changes from 1 to 30 non uniformly. And also same values repeat for 12 times. For example: 2222222222777777777777 etc. These result in non uniform output, for ex: 24-24-24-24-24-24-24-24-84-84... etc
I aim to send output signals incresing uniformly. Like 12 times 1- 12 times 2- ... - 12 times 30. Is there a way to do this in simulink? Also, if you can; please think of this model as portable. In other words, if sent to another computer, without user operation (except running) I need to get the required result.
Note: In the figure focus on right side. In short, I take values from left side in 5 bit binary(Except 00000 and 11111), convert them to binary(1 to 30) and use lookup table to check the binary equivalent and send it to scope. The problem is that lookup table output is not uniform. Also, added mat file as extension if you want to analyze. If explanation is not clear please read: (assume not 12 times but 3 times)
1-D Lookup Table Output: 111333272727121212555
Wanted 1-D Lookup Table Output: 111333555121212272727

답변 (1개)

Navya Seelam
Navya Seelam 2020년 5월 13일
편집: Navya Seelam 2020년 5월 13일
From my understanding you are trying to sort the 1-D Lookup Table Output in the increasing order. In order to perform this you have to store all the 1-D Look up table outputs and then you cannot perform the sorting operation. However this storing the ouput of 1-D Lookup Table increases latency of the final output.

카테고리

Help CenterFile Exchange에서 Lookup Tables에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by