Question

In: Electrical Engineering

Hi I am having the following problem. At the moment I am trying to create a...

Hi I am having the following problem. At the moment I am trying to create a bode plot for the following function.

G(s)=(Ks+3)/((s+2)(s+3))

Note: Not K(s+2)!

I then want to plot multiple bode plots for various values of K. Eg. 1,2,3, etc. I am having two separate issues.

1. How do I define the TF with a constant K in the location required (a multiple of s in the numerator)

2. How do I create multiple bode plots for values of K on the same plot?

Thanks

Solutions

Expert Solution

If you want to use K as variable you should go for manually plotting the bode instead of using built-in bode function.

w=0:1:100;
K=1;
Gs= ((K*1i*w)+3)./(((1i*w)+2).*((1i*w)+3));
subplot(211);
semilogx(w,20*log10(abs(Gs)));
ylabel('Magnitude in dB');
grid on;
title('K=1');

subplot(212);
semilogx(w,angle(Gs)*180/pi);
ylabel('Phase angle in degrees');
xlabel('frequency in rad/s');
grid on;


figure();
K=2;
Gs= ((K*1i*w)+3)./(((1i*w)+2).*((1i*w)+3));
subplot(211);
semilogx(w,20*log10(abs(Gs)));
ylabel('Magnitude in dB');
grid on;
title('K=3');

subplot(212);
semilogx(w,angle(Gs)*180/pi);
ylabel('Phase angle in degrees');
xlabel('frequency in rad/s');
grid on;

figure();
K=3;
Gs= ((K*1i*w)+3)./(((1i*w)+2).*((1i*w)+3));
subplot(211);
semilogx(w,20*log10(abs(Gs)));
ylabel('Magnitude in dB');
grid on;
title('K=3');

subplot(212);
semilogx(w,angle(Gs)*180/pi);
ylabel('Phase angle in degrees');
xlabel('frequency in rad/s');
grid on;


Related Solutions

Hi, I am having trouble with trying to calculate asymptotic time complexity for each of these...
Hi, I am having trouble with trying to calculate asymptotic time complexity for each of these functions. A step by step tutorial would be great. This is done in Python. Please not only the answer, but how you calculated it as well. Here is the code #Q2 # to denote ayymptotic time complexity use the following notation # O(l) O(m) O(a) O(b) # e.g. traversing through l = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] is O(l)...
Hi, I am doing an experiment that is called NaBH4 reduction of acetophenone. I am having...
Hi, I am doing an experiment that is called NaBH4 reduction of acetophenone. I am having trouble understand the techinque/wording when using a sep funnel. These are some of the procedures below: 1. Pour the mixture into a separatory funnel and add 20 mL of ice water. Rinse the beaker with additional ice water (5 mL) and add the rinsing to the separatory funnel. Rinise the beaker with ether (2 X 15 mL), adding the ether to the separatory funnel....
I am having a trouble with a python program. I am to create a program that...
I am having a trouble with a python program. I am to create a program that calculates the estimated hours and mintutes. Here is my code. #!/usr/bin/env python3 #Arrival Date/Time Estimator # # from datetime import datetime import locale mph = 0 miles = 0 def get_departure_time():     while True:         date_str = input("Estimated time of departure (HH:MM AM/PM): ")         try:             depart_time = datetime.strptime(date_str, "%H:%M %p")         except ValueError:             print("Invalid date format. Try again.")             continue        ...
Hi there, I am having a bit of an issue that I just can't seem to...
Hi there, I am having a bit of an issue that I just can't seem to figure it out. My code is supposed to read from another file and then have an output of a number for each categorie ////////Required Output/////// Movies in Silent Era: 0\n Movies in Pre-Golden Era: 7\n Movies in Golden Era: 581\n Movies in Change Era: 3445\n Movies in Modern Era: 10165\n Movies in New Millennium Era: 15457\n My program is: import java.util.ArrayList; public class MovieReducerEraCount...
I am trying to get this code to work but I am having difficulties, would like...
I am trying to get this code to work but I am having difficulties, would like to see if some one can solve it. I tried to start it but im not sure what im doing wrong. please explain if possible package edu.hfcc; /* * Create Java application that will create Fruit class and Bread class * * Fruit class will have 3 data fields name and quantity which you can change. * The third data field price should always...
Hi! I am in an intro level Finance course and I am stuck on this problem....
Hi! I am in an intro level Finance course and I am stuck on this problem. Any help would be greatly appreciated. I am deciding on opening a restaurant. I was able to scrape together some capital from friends and family, but I must pay them back in 4 years at 12% per annum. I figure that it will cost me $165,000 to start up with rent, deposits, equipment, salaries, chicken, basil, rice, etc. for the first year, but I...
I am trying to create a makefile for the following program in Unix. The C++ program...
I am trying to create a makefile for the following program in Unix. The C++ program I am trying to run is presented here. I was wondering if you could help me create a makefile for the following C++ file in Unix and show screenshots of the process? I am doing this all in blue on putty and not in Ubuntu, so i don't have the luxury of viewing the files on my computer, or I don't know how to...
I am trying to create a classified balance sheet and I am unsure what is involved...
I am trying to create a classified balance sheet and I am unsure what is involved when reporting the current assets, liabilities and owners equity?
In trying to apply my knowledge in the real world, I am trying to create a...
In trying to apply my knowledge in the real world, I am trying to create a realistic retirement schedule. However, I am running into difficulties using both a financial calculator as well as our equations from class in doing this. I am trying to do the following: plan a retirement schedule between the ages of 25 and 70, in which I would deposit 20% of my income each year. The income starts at 80,000 with an annual growth rate of...
HI There, there is no solution for a problem that I am looking for. Advanced Accouting...
HI There, there is no solution for a problem that I am looking for. Advanced Accouting - Chapter 4, problem 30. Can you please assist? Thanks. Posada Company acquired 7,000 of the 10,000 outstanding shares of Sabathia Company on January 1, 2013, for $840,000. The subsidiary’s total fair value was assessed at $1,200,000 although its book value on that date was $1,130,000. The $70,000 fair value in excess of Sabathia’s book value was assigned to a patent with a 5-year...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT