Question

In: Computer Science

Using Octave, analyze the response for the system to a unit step input. Share the code...

Using Octave, analyze the response for the system to a unit step input. Share the code or commands used.

System : x'''+3x''+2x=0

Solutions

Expert Solution

//to clear the memory of all previously created variables

clear all;

close all;

clc

x=linspace(0,4,1000) //make a vector of numbers and put them in X and x is a variable of our equation and roots of the equation are between 0 to 4 that's why we use 0 and 4

y = 1*x^3 + 3*x^2 + 2*x

plot(x,y,"linewidth",3)

set(gca,"linewidth",4,"fontsize",30) //the fonts that this program uses are very small so with a quick search i figured out if i use this command line i can set adjust the font, linesize and grid and basically tells the tool to turn on the XY grid

grid on

(now if we save and run the program it shows u the roots of the equation graphically and if we want to see the actual roots then we have to add some lines)

coeff=[1 3 2];

roots(coeff)

(so now if u again save and run first it gets the roots of equation graphically and also the exact roots in the matrix form)

the roots are between 0 and 2

Hey, hope this helps u,if so give a thumbs up, it means a lot thanks:) In case any problem write a comment I'll sure be helping you. downvotes will be permanent and not be notified to us so i can't help u in that case. Have a good day:)     


Related Solutions

Determine the response to the unit step if the Z transform of a response to the...
Determine the response to the unit step if the Z transform of a response to the unit impulse of a causal system is: H (z) = ((z ^ 3) -1) / ((z ^ 4) -1)
Using the four step (viz., analyze the problem, develop a solution, code the solution, test the...
Using the four step (viz., analyze the problem, develop a solution, code the solution, test the program) program development method, write a C++ program that permits users to enter the following information about your small company’s 5 employees and then writes the information to a file “employee.txt”: ID No. Sex (M/F) Hourly Wage Years with the Company Make sure that you open the file for write using the two-step process of “trial read followed by write” so that an existing...
Derived the time response of first order system with the ramp input using Laplace transform.
Derived the time response of first order system with the ramp input using Laplace transform.
Using MATLAB or Octave, use documenting code to Write a script that prompts the user for...
Using MATLAB or Octave, use documenting code to Write a script that prompts the user for a minimum and maximum real number, then generates and prints a random number in the requested range. The script should then do the same for an integer range. Sample output: Enter a minimum real value: 0.5 Enter a maximum real value: 30 A random number in the range ( 0.5000, 30.0000 ) is 1.7851 Enter a minimum integer value: -10 Enter a maximum integer...
It´s applied an unit step of 10V on the input of a RC Series Circuit, it...
It´s applied an unit step of 10V on the input of a RC Series Circuit, it is known that resistor value is 1 Kohms, determine the value of the capacitor knowing that took it 10 seconds to charge it.
Pythons code using idle Write an input function. Then use it to supply the input to...
Pythons code using idle Write an input function. Then use it to supply the input to following additional functions: i) Print multiplication table of the number from 1 to 12. ii) Print the sum of all the numbers from 1 to up the number given. iii) Print if the number supplied is odd or even.
matlab code of Free Vibration Response of the System as a Continuous/ Distributed/Infinite DOF System
matlab code of Free Vibration Response of the System as a Continuous/ Distributed/Infinite DOF System
Compute and plot the unit-step response of the following model. 10ÿ + 6ẏ + 2y = f + 7ḟ
Compute and plot the unit-step response of the following model.10ÿ + 6ẏ + 2y = f + 7ḟ
In C++ and input code using the template below Get a copy of the caseswitch.cpp. The...
In C++ and input code using the template below Get a copy of the caseswitch.cpp. The purpose of the program is to demonstrate how to use Switch statement. Complete the for loop so that the program will ask the user for 6 input grades. Compile and run this C++ program. Use input value A, B, C, D, E, and F. Notice there is no output for B and E. Add cases for them. B is "Good Work." Add a case...
x[n] is the input of an LTI system with the impulse response of h[n]. x[n] =...
x[n] is the input of an LTI system with the impulse response of h[n]. x[n] = [1, 2, 3] and h[n] = [4, 6]. Use 4-point DFT and IDFT and zero padding of x[n] and h[n] to find the output y[n].
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT