Научная статья на тему 'ANALYSIS OF DISCRETE CONVOLUTION IN THE MATLAB PROGRAM'

ANALYSIS OF DISCRETE CONVOLUTION IN THE MATLAB PROGRAM Текст научной статьи по специальности «Компьютерные и информационные науки»

CC BY
436
65
i Надоели баннеры? Вы всегда можете отключить рекламу.
Ключевые слова
Discrete convolution / correlation / impulse response / continuous signal / discrete signal / filter coefficients / sequences.

Аннотация научной статьи по компьютерным и информационным наукам, автор научной работы — Mokhirakhon Kurbonalievna Khusanova

In the section article, discrete convolution, general descriptions of the correlation process described in the correlation process and its effects on the impulse response, the results obtained in the Matlab program are explained in the example of practical results.

i Надоели баннеры? Вы всегда можете отключить рекламу.
iНе можете найти то, что вам нужно? Попробуйте сервис подбора литературы.
i Надоели баннеры? Вы всегда можете отключить рекламу.

Текст научной работы на тему «ANALYSIS OF DISCRETE CONVOLUTION IN THE MATLAB PROGRAM»

ANALYSIS OF DISCRETE CONVOLUTION IN THE MATLAB PROGRAM

Mokhirakhon Kurbonalievna Khusanova

Lecturer, Fergana branch of TUIT named after Muhammad Al-Khorazmiy

ABSTRACT

In the section article, discrete convolution, general descriptions of the correlation process described in the correlation process and its effects on the impulse response, the results obtained in the Matlab program are explained in the example of practical results.

Keywords: Discrete convolution, correlation, impulse response, continuous signal, discrete signal, filter coefficients, sequences.

INTRODUCTION

Like a number of processes, convolution can be both permanent and discrete. Definitional convolution can be used for two functions or sequences, and control the outcome function or sequence at the output.

r-\ | [\

hi ^r—1 I

Figure 1. Mutual convolution of two functions

Constant convolution is a type of integral substitution, which is essentially very close to the correlation function.

y = f * g

Figure 2. Mutual convolution of two functions

Recalling the correlation function, we evaluated the degree of similarity of one function to another over time, in other words, we could calculate the area of change from one function to another and the area of overlap. The degree of similarity is reflected by the reflection of one function in the convolution, and its time is shifted by the second function. Let us now consider an example of the calculation of a discrete convolution, that is, the convolution of two sequences, knowing that in the transition from continuous signals to discrete, the integration operations are replaced by some

simple multiplications and sums. Consider two separate sequences of 5 samples each: x with values 4 2 1 2 3 and y with values 1 2 4 2 3.

Figure 3

To show the time shift, we fill the first sequence with zeros, reflect the second sequence, and multiply the number of elements in the element by the first five samples. Combining the elements of the multiplication results, we get the number 4. We then move the first sequence to a single report and repeat the multiplication and addition operations. Thus, we calculate the elements of the y sequence. As you can see, we moved the first x and rotated the second h sequence. Indeed, there is no fundamental difference in the significance of this relative shift, but such a demonstration is not in vain.

LITERATURE REVIEW

The first sequence can be thought of as an input signal, and the second as a type of system through which this signal passes. The result of the calculated linear discrete convolution includes more samples than each of the collected and the sequence. The built-in conv function can be used to quickly calculate the discrete convolution of MATLAB. In the command window, we create these two sequences and calculate their folds in one operation. Let's create the vectors x, h and calculate the resulting y vector. we visualize the output sequence using the stem function. (Figure 4)

» X = [4 2 1 2 3]

X = 20

4 2 12 3 t5

» h - [1 2 4 2 3] 10

h =

S

12 4 2 3

o-'-----

i 2 3 4 S 6 ? B 9

» y = conv(x,h)

y -

4 10 21 20 27 22 19 12 9

» stem(y)

A» _ _

Figure-4

As we can see, the result is exactly the same as previously calculated. We now move from abstract mathematical calculations to the practical applications of convolution for digital signal processing, but for this we need to return for a moment to the analog world. Let us recall the basics of combining RC chains, the theory of electrons.

Let's say we turn on the voltage source for a while and then turn it off. In the time range, the voltage dependence of the source is rectangular. We also describe its impulse response, i.e., the reaction of the chain to the delta function. Recall the Delta function or Dirac function, this function is not zero and is only zero at the beginning of the coordinates or at time t, i.e. an infinitely short infinitely strong pulse. Thus the reaction of the system to such impulses is called the impulse reaction. With its help we can describe the dynamics of the system.

DISCUSSION

In our case, to calculate the output signal, we need to combine the voltage across the capacitor, the input signal of the circuit voltage, with the pulsed reaction of the electron. Convolution is used to calculate the output of a system with a known input signal and a known characteristic of the system. Now, let's look at an example of using convolution to find signals. If the system has a pulsed response that is opposite to the value of the input sequence, then the result of the convolution operation will be maximal when the samples match. Based on this, it is possible to obtain the principle of compatible filtering. Appropriate filters are used when it is not important for us to maintain the received signal form, but when it is important to determine its presence on air and the time of arrival.

Figure-5

This is one of the usual radar functions, that is, if we know in advance the form of the signal we want to receive. It is not difficult to find the filter coefficients, i.e. the value of the second sequence for the convolution operation, otherwise they are equal to the signal report. In this case, the value at the filter output will be maximum when a noisy signal arrives at the input of the system. Similarly, signals can be detected in the background of noise.

Let's look at an example in MATLAB. In this example, we look for a random sequence of x using a filter that matches the pulse reaction of h. And we form the h impulse response by reflecting the sequence x. The fliplr function displays array elements.

RESULTS

We then add random elements before and after our sequence, as well as additional noise. We know where we put our sequence, so we write the last state of our sequence in the EXPECTED_NUM variable. We then calculate the conversion of our noisy signal

from the h pulse response, and the maximum value of the convolution should indicate the state of the end of our sequence. Let's check.

Figure-6

The graph above shows the noise signal and the actual sequences in the background, while the graph below shows our convolution. As you can see, it has a clear maximum.

Figure-7

CONCLUSION

We try to press the RUN button a few more times, i.e. the nature of the noise does not affect the state of the desired sequence. But if we replace the sequence with a few patterns, we can see in the same way that our convolution function successfully tracks its position against a background of noise.

REFERENCES

1. Network Analysis and Synthesis, L. Weinberg, McGraw-Hill. 2007.

2. Elecrronic Filter Design Handbook, Williams and Taylor, McGraw-Hill. 2004.

3. Voinova M.G. Pedagogical technologies and pedagogical skills: Textbook. -Tashkent, 2005.

4. Пулатов, Г. Г., & Мадалиева, Г. А. (2018). ИССЛЕДОВАНИЕ СВОЙСТВ КАУСТИК ПРИ ПОМОЩИ MAPLETS. In ИННОВАЦИОННОЕ РАЗВИТИЕ НА УКИ И ОБРАЗОВАНИЯ (pp. 30-32).

5. Каримов, У., & Каримова, Г. (2018). ГЕОПОЛИТИЧЕСКАЯ КОНКУРЕНЦИЯ В ИНФОРМАЦИОННОМ ПРОСТРАНСТВЕ. In Перспективные информационные технологии (ПИТ 2018) (pp. 1368-1372).

6. Пулатов, Г. Г., & Хакимова, К. А. (2018). ТИПОВЫЕ ПРОБЛЕМЫ ДИСТАНЦИОННОГО ОБРАЗОВАНИЯ. In ИННОВАЦИОННОЕ РАЗВИТИЕ НА УКИ И ОБРАЗОВАНИЯ (pp. 33-35).

7. Karimov, U., & Kasimov, I. (2018). THE IMPORTANCE OF MODERN INFORMATION TECHNOLOGIES IN DEVELOPMENT OF DISTANCE EDUCATION. In Перспективные информационные технологии (ПИТ 2018) (pp. 1186-1187).

8. Abdurakhmonova, M. M., ugli Mirzayev, M. A., Karimov, U. U., & Karimova, G. Y. (2021). Information Culture And Ethical Education In The Globalization Century. The American Journal of Social Science and Education Innovations, 3(03), 384-388.

9. Suyumov, J., Madaliyeva, G., & Xakimova, K. (2021). IMITATION MODELING TECHNOLOGIES IN HIGHER EDUCATIONAL PROCESS. Теория и практика современной науки, (5), 18-21.

10. Karimov, U., Kaxarov, S., Yokubjonov, S., & Ziyodov, D. (2018). USING NEW INFORMATION TECHNOLOGIES IN DISTANCE LEARNING SYSTEM.

In НОВАЯ ПРОМЫШЛЕННАЯ РЕВОЛЮЦИЯ В ЗЕРКАЛЕ СОВРЕМЕННОЙ НАУКИ (pp. 9-11).

11. Karimov, U., & Abdurakhmon, A. (2017). INNOVATIVE INFORMATION TECHNOLOGY IN EDUCATION. Форум молодых ученых, (5), 9-12.

12. Karimov, U., & Kasimov, I. (2018). THE IMPORTANCE OF MODERN INFORMATION TECHNOLOGIES IN DEVELOPMENT OF DISTANCE EDUCATION. In Перспективные информационные технологии (ПИТ 2018) (pp. 1186-1187).

13. Каримов, У. У. (2017). РОЛЬ СРЕДСТВ МАССОВОЙ ИНФОРМАЦИИ В ПРОЦЕССЕ ГЛОБАЛИЗАЦИИ. In Перспективные информационные технологии (ПИТ 2017) (pp. 1189-1192).

14. Pulatov, G., Ganiev, S., & Karimova, G. POSSIBILITIES OF INFORMATION TECHNOLOGIES IN ENSURING THE QUALITY OF EDUCATION.

15. Каримов, У., Хакимова, Д., & Халилов, Л. (2018). ИНФОРМАЦИОННОЕ И КОММУНИКАЦИОННОЕ ТЕХНОЛОГИИ ВЛИЯНИЕ НА ОБРАЗОВАНИЕ В ТЕХНИЧЕСКОМ ОБСЛУЖИВАНИЕ. Мировая наука, (10), 193-197.

16. Каримов, У., & Каримова, Г. (2018). ГЕОПОЛИТИЧЕСКАЯ КОНКУРЕНЦИЯ В ИНФОРМАЦИОННОМ ПРОСТРАНСТВЕ. In Перспективные информационные технологии (ПИТ 2018) (pp. 1368-1372).

17. Karimov A., Muxammadjonov X. INFORMATION TECHNOLOGIES: INFORMATION EDUCATION AND INFORMATICS //Экономика и социум. -2020. - №. 8. - С. 40-43.

18. Каримов, У., & Каримова, Г. (2021). АХБОРОТ О^ИМИ ВА АХБОРОТ МАДАНИЯТИНИНГ ШАКЛЛАНИШ ТЕНДЕНЦИЯЛАРИ. Scientific progress, 2(3), 743-750.

19. National Idea: Propaganda Technologies and Glossary of Terms (Team of Authors). Tashkent, 2007.

20. Тожиев М., Салахутдинов Р., Баракаев М., Абдалова С. Таълим жараёнида замонавий ахборот технологиялари. -Тошкент, 2001.

21. Suyumov, J. Y. (2021). KOMPYUTER IMITATSION MODELLARI ASOSIDA FAOL OQITISH TEXNOLOGIYASINING NAZARIY ASOSLARI. Scientific progress, 2(3), 459-466.

22. Tokhirov, R., & Rahmonov, N. (2021). Technologies of using local networks efficiently. Asian Journal Of Multidimensional Research, 10(6), 250-254.

i Надоели баннеры? Вы всегда можете отключить рекламу.