MATLAB Answers

1-D Lookup Table- Output Formatting

1 ビュー (過去 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

  0 件のコメント

サインインしてコメントする。

回答 (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.

  0 件のコメント

サインインしてコメントする。

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by