Question

In this problem you will create a simulink model that uses a switch block to convert...

In this problem you will create a simulink model that uses a switch block to convert the negative part of a sine wave to a positive. a) Create a sine block with an amplitude of 5. This will be the input sine wave. b) Use a switch block to output either the original sine wave or it’s absolute value, depending on whether the part of the wave is negative or positive. c) Connect the output of the switch block to a scope for viewing.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

TO LAUNCH SIMULINK:

FROM THE SIMULINK LIBRARY BROWSER, ADD THE FOLLOWING BLOCKS TO A NEW MODEL:

From Sources, right click on Sine Wave block and add to new model

From Math Operations, right click on Abs block and add to new model

From Signal Routing, right click on Switch block and add to new model

From Sinks, right click on Scope block and add to new model

CONNECT THE BLOCKS AS SHOWN BELOW:

Set the amplitude of Sine wave to 5, and the Threshold of Switch block to 0, save the model and run, double click on Scope block to view the resulting graph.

------------------------------------------------------------------------------
COMMENT DOWN FOR ANY QUERY RELATED TO THIS ANSWER,

IF YOU'RE SATISFIED, GIVE A THUMBS UP
~yc~

Add a comment
Know the answer?
Add Answer to:
In this problem you will create a simulink model that uses a switch block to convert...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Will thumbs up. Thank you. Use Simulink to simulate the behavior of the difference equation y[n] x[n] (1/4)y[n-. Use a s...

    Will thumbs up. Thank you. Use Simulink to simulate the behavior of the difference equation y[n] x[n] (1/4)y[n-. Use a sine wave as the input x[n]. Decide upon a frequency and sample time of your choice. Use the following Simulink blocks to build the Simulink model of the system as shown in Figure 13: an Integer Delay block from the Discrete library 14 a Gain block from the Math Operations library (double click the block to specify the gain parameter...

  • part II is what I need help one. part 1 is also attached for your reference...

    part II is what I need help one. part 1 is also attached for your reference Part II: Low Pass Filter contd. Noise Removal To observe the noise removal capabilities of a low -pass filter, we will add a second input to the system to simulate noise Step 1: Alter your Simulink model by adding another sine wave function and use a Sum block to add the inputs together as the new input to the system. The second sine function...

  • Problem 3: A Connect Four Player Class In this problem, you will create a Player class...

    Problem 3: A Connect Four Player Class In this problem, you will create a Player class to represent a player of the Connect Four game. In combination with the Board class that you wrote in Problem 2 and some code that you will write in the next problem set, this will enable you to play a game of Connect Four with a friend! Getting started Begin by downloading the file ps11pr3.py and opening it in Sypder or your editor of...

  • Problem 1 - Print positive message Create a new project named whatever you want in Visual...

    Problem 1 - Print positive message Create a new project named whatever you want in Visual Studio using the Windows Desktop Wizard or in Xcode. If you're using Visual Studio, add a main.c file to your project; you can use the main.c template I provided on Canvas if you'd like. If you're using Xcode, Xcode automatically generates a main.c file for you. Read in an integer from the user; don't prompt for the user input, because that will confuse the...

  • Problem 52: (25 points) Operational amplifiers are important building blocks in a wide spectrum of electronic systems such as amplifiers and filters. The concept of feedback control is of central imp...

    Problem 52: (25 points) Operational amplifiers are important building blocks in a wide spectrum of electronic systems such as amplifiers and filters. The concept of feedback control is of central importance in understanding the design of operational amplifier circuits. For without feedback, operational amplifiers behave as comparators. This problem shows why it is necessary to connect the output of an operational amplifier to its inverting input. Negative feedback produces a circuit that is BIBO stable. Figure 1(A) shows the circuit...

  • All information about the question (Task 1 and task 2) are down below Programming Assignments Task...

    All information about the question (Task 1 and task 2) are down below Programming Assignments Task 1 – Page 39. in Programming A Comprehensive Introduction Update your program from Assignment 2, Task #2 Allow the user to input their weight for the earth weight to moon weight conversion problem. Add an ifstatement that prompts the user if she inputs 0 or a negative number for her earth weight. #13. Mars’ gravity is about 17 percent less that of the earth’s....

  • JAVA PROG HW Problem 1 1. In the src −→ edu.neiu.p2 directory, create a package named...

    JAVA PROG HW Problem 1 1. In the src −→ edu.neiu.p2 directory, create a package named problem1. 2. Create a Java class named StringParser with the following: ApublicstaticmethodnamedfindIntegerthattakesaStringandtwocharvariables as parameters (in that order) and does not return anything. The method should find and print the integer value that is located in between the two characters. You can assume that the second char parameter will always follow the firstchar parameter. However, you cannot assume that the parameters will be different from...

  • Here’s your task: You’re going to create exactly two classes. One class will act as the...

    Here’s your task: You’re going to create exactly two classes. One class will act as the functional server. The main method of this server will setup the connection on a localhost, find the two clients, let them know which one is Player 1 and which one is Player 2 (depending on the order they connect), and then manage the game as it’s being played. This is important: For each player’s turn they should start by displaying their current score to...

  • Problem statement For this program, you are to implement a simple machine-learning algorithm that uses a...

    Problem statement For this program, you are to implement a simple machine-learning algorithm that uses a rule-based classifier to predict whether or not a particular patient has diabetes. In order to do so, you will need to first train your program, using a provided data set, to recognize a disease. Once a program is capable of doing it, you will run it on new data sets and predict the existence or absence of a disease. While solving this problem, you...

  • Java Program Note: no break statements or switch staements High, Low, Sevens For this lab you...

    Java Program Note: no break statements or switch staements High, Low, Sevens For this lab you will write a Java program that plays the dice game High-Low. In this game a player places a bet on whether the sum of two dice will come up High (totaling 8 or higher), Low (totaling 6 or less) or Sevens (totaling exactly 7). If the player wins, they receive a payout based on the schedule given in the table below: Choice Payout ------...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT