<< Chapter < Page Chapter >> Page >

With this code, a time vector t is generated by taking a time interval of Delta for 8 seconds. Convolve the two input signals, x1 and x2, using the function conv. Compute the actual output y_ac using Equation (1). Measure the length of the time vector and input vectors by using the command length(t). The convolution output vector y has a different size (if two input vectors m and n are convolved, the output vector size is m+n-1). Thus, to keep the size the same, use a portion of the output corresponding to y(1:Lt) during the error calculation.

Use a waveform graph to show the waveforms. With the function Build Waveform (Functions → Programming → Waveforms → Build Waveforms) , one can show the waveforms across time. Connect the time interval Delta to the input dt of this function to display the waveforms along the time axis (in seconds).

Merge together and display the true and approximated outputs in the same graph using the function Merge Signal (Functions → Express → Sig Manip → Merge Signals) . Configure the properties of the waveform graph as shown in [link] .

Waveform Graph Properties Dialog Box

[link] illustrates the completed block diagram of the numerical convolution.

Block Diagram of the Convolution Example

[link] shows the corresponding front panel, which can be used to change parameters. Adjust the input exponent powers and approximation pulse-width Delta to see the effect on the MSE .

Front Panel of the Convolution Example

Convolution example 2

Next, consider the convolution of the two signals x ( t ) = exp ( 2t ) u ( t ) size 12{x \( t \) ="exp" \( - 2t \) u \( t \) } {} and h ( t ) = rect ( t 2 2 ) size 12{h \( t \) = ital "rect" \( { {t - 2} over {2} } \) } {} for , where u ( t ) size 12{u \( t \) } {} denotes a step function at time 0 and rect a rectangular function defined as

rect ( t ) = { 1 0 . 5 t < 0 . 5 0 otherwise size 12{ ital "rect" \( t \) = left lbrace matrix { 1 {} # - 0 "." 5<= t<0 "." 5 {} ## 0 {} # ital "otherwise"{}} right none } {}

Let Δ = 0 . 01 size 12{Δ=0 "." "01"} {} . [link] shows the block diagram for this second convolution example. Again, the .m file textual code is placed inside a LabVIEW MathScript node with the appropriate inputs and outputs.

Block Diagram for the Convolution of Two Signals

[link] illustrates the corresponding front panel where x ( t ) size 12{x \( t \) } {} , h ( t ) size 12{h \( t \) } {} and x ( t ) h ( t ) size 12{x \( t \) * h \( t \) } {} are plotted in different graphs. Convolution ( ) size 12{ \( * \) } {} and equal ( = ) size 12{ \( = \) } {} signs are placed between the graphs using the LabVIEW function Decorations .

Front Panel for the Convolution of Two Signals

Convolution example 3

In this third example, compute the convolution of the signals shown in [link] .

Signals x1(t) and x2(t)

[link] shows the block diagram for this third convolution example and [link] the corresponding front panel. The signals x1 ( t ) size 12{x1 \( t \) } {} , x2 ( t ) size 12{x2 \( t \) } {} and x1 ( t ) x2 ( t ) size 12{x1 \( t \) * x2 \( t \) } {} are displayed in different graphs.

Block Diagram for the Convolution of Two Signals

Front Panel for the Convolution of Two Signals

Convolution properties

In this part, examine the properties of convolution. [link] shows the block diagram to examine the properties and [link] and [link] the corresponding front panel. Both sides of equations are plotted in this front panel to verify the convolution properties. To display different convolution properties within a limited screen area, use a Tab Control (Controls Modern Containers Tab Control) in the front panel.

Front Panel of Convolution Properties
Block Diagram of Convolution Properties

Questions & Answers

what is defense mechanism
Chinaza Reply
what is defense mechanisms
Chinaza
I'm interested in biological psychology and cognitive psychology
Tanya Reply
what does preconceived mean
sammie Reply
physiological Psychology
Nwosu Reply
How can I develope my cognitive domain
Amanyire Reply
why is communication effective
Dakolo Reply
Communication is effective because it allows individuals to share ideas, thoughts, and information with others.
effective communication can lead to improved outcomes in various settings, including personal relationships, business environments, and educational settings. By communicating effectively, individuals can negotiate effectively, solve problems collaboratively, and work towards common goals.
it starts up serve and return practice/assessments.it helps find voice talking therapy also assessments through relaxed conversation.
miss
Every time someone flushes a toilet in the apartment building, the person begins to jumb back automatically after hearing the flush, before the water temperature changes. Identify the types of learning, if it is classical conditioning identify the NS, UCS, CS and CR. If it is operant conditioning, identify the type of consequence positive reinforcement, negative reinforcement or punishment
Wekolamo Reply
please i need answer
Wekolamo
because it helps many people around the world to understand how to interact with other people and understand them well, for example at work (job).
Manix Reply
Agreed 👍 There are many parts of our brains and behaviors, we really need to get to know. Blessings for everyone and happy Sunday!
ARC
A child is a member of community not society elucidate ?
JESSY Reply
Isn't practices worldwide, be it psychology, be it science. isn't much just a false belief of control over something the mind cannot truly comprehend?
Simon Reply
compare and contrast skinner's perspective on personality development on freud
namakula Reply
Skinner skipped the whole unconscious phenomenon and rather emphasized on classical conditioning
war
explain how nature and nurture affect the development and later the productivity of an individual.
Amesalu Reply
nature is an hereditary factor while nurture is an environmental factor which constitute an individual personality. so if an individual's parent has a deviant behavior and was also brought up in an deviant environment, observation of the behavior and the inborn trait we make the individual deviant.
Samuel
I am taking this course because I am hoping that I could somehow learn more about my chosen field of interest and due to the fact that being a PsyD really ignites my passion as an individual the more I hope to learn about developing and literally explore the complexity of my critical thinking skills
Zyryn Reply
good👍
Jonathan
and having a good philosophy of the world is like a sandwich and a peanut butter 👍
Jonathan
generally amnesi how long yrs memory loss
Kelu Reply
interpersonal relationships
Abdulfatai Reply
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, An interactive approach to signals and systems laboratory. OpenStax CNX. Sep 06, 2012 Download for free at http://cnx.org/content/col10667/1.14
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'An interactive approach to signals and systems laboratory' conversation and receive update notifications?

Ask