Question

In: Electrical Engineering

example with solution MATLAB 4 order

example with solution MATLAB 4 order

Solutions

Expert Solution

ExAMPLE)

How to solve the value of x for the equation 2x^4+x=18.

Ans)

Yes it's easier when we creat create a vector of its coefficients and use the roots function:

Program:-

% 2x^4+x=18 -> 2x^4 + x -18 = 0
coefvct = [2 0 0 1 -18];     % Coefficient Vector
x = roots(coefvct)              % Solution

Produces:-

x =

-1.7732e+000 + i

41.6666e-003 + 1.7326e+000i

41.6666e-003 - 1.7326e+000i

1.6899e+000 + i

Two real and two complex roots,

2nd example)

2x^4+x=C

C=20,22,24,26,28,30........50

Now, how to find x value at different C values.

Program-

The loop is easiest way:-

C = [20:2:50];                                  % Define ‘C’
X = nan(4, length(C));                          % Preallocate ‘X’
for k1 = 1:length(C)
    X(:,k1) = roots([2 0 0 1 -C(k1)]);        % Coefficient Matrix
end

The ‘X’ matrix is a (4x16) array with each column the coefficients corresponding the the same element in ‘C’.

PLZ HIT THE LIKE SYMBOLE.....


Related Solutions

example step and impulse response of first and second order systems Matlab reports
example step and impulse response of first and second order systems Matlab reports
Matlab code for Gauss Siedel with solved example in Matlab
Matlab code for Gauss Siedel with solved example in Matlab
Problem 4. From order two to order three: (a) Find the general solution of y′′′ +...
Problem 4. From order two to order three: (a) Find the general solution of y′′′ + 3y′′ + 3y′ + y = 0. (b) Write a differential equation given that the fundamental system of solutions is ex,exsinx, excosx. (c) Compute the general solution of xy′′′ + y′′ = x2. [Answer: C1x ln x + C2x + C3 + x4 .]
Consider the following polynomial ?(?)=(?+2)(?−10)(?+4)(?−2) a)Use Matlab to multiply these terms in order to form a...
Consider the following polynomial ?(?)=(?+2)(?−10)(?+4)(?−2) a)Use Matlab to multiply these terms in order to form a 4thorder polynomial b)Apply the ‘roots’ function to your answer in part a to verify your calculation was correct. c)Use Matlab to divide your polynomial answer in part aby the term (s+2 )d)Apply ‘roots’ to your answer in part c to verify your calculation was correct.
y'=y-x^2 ; y(1)= -4 Write a MATLAB program that makes two plots of the solution to...
y'=y-x^2 ; y(1)= -4 Write a MATLAB program that makes two plots of the solution to the equation using the following values. Suggest you use nested loops instead of two different loops. Be sure to label your plots. a. x0 = 1.0, step size h = .2, number of steps n = 20. b. x0 = 1.0, step size h = .05, number of steps n = 80.
This is a Matlab Question Create MATLAB PROGRAM that can solve First Order Linear Differential Equation...
This is a Matlab Question Create MATLAB PROGRAM that can solve First Order Linear Differential Equation ( 1 example contains condition and the other does not have condition). 1. ty′ + 2y = t^2 − t + 1, y(1)=12 The correct answer is y(t) = 1/4 t^2 − 1/3 t + 1/2 + 1/12t^2 2. (x-1) dy/dx + 2y = (x+1)^2 The correct answer is y = (x(x+1) / x-1 ) + C(x+1) / x-1 The correct answer is
Customer Order Example ORDER NO: 61384                                    &
Customer Order Example ORDER NO: 61384                                                            ORDER DATE: 9/24/2014 CUSTOMER NO: 1273 CUSTOMER NAME: CONTEMPORARY DESIGNS CUSTOMER ADDRESS: 123 OAK ST. CITY STATE ZIP: AUSTIN, TX 28384 PRODUCT                                        QUANTITY    UNIT                          EXTENDED NO                DESCRIPTION         ORDERED    PRICE                        PRICE M128              BOOKCASE                4                   200.00                        800.00 B381               CABINET                      2                   150.00                        300.00            R210              TABLE                          1                   500.00                        500.00                                                                                     TOTAL                  1600.00 Normalize this user view. Make sure to show your work for each view – you should have 4 answers (e.g....
Only MATLAB solution is required. No handwritten solution requested. Given the system of equations − 1.1x1...
Only MATLAB solution is required. No handwritten solution requested. Given the system of equations − 1.1x1 + 10x2 = 120 − 2x1 + 17.4x2 = 174 (a) Solve graphically and check your results by substituting them back into the equations. ( 15 pts. ) (b) On the basis of the graphical solution, what do you expect regarding the condition of the system? ( 5 pts. ) (c) Compute the determinant ( 5 pts. ).
what are the steps needed to be done in Matlab in order to design a PID...
what are the steps needed to be done in Matlab in order to design a PID controller? ( i need a step-by-step guidelines) the transfer function is already obtained. how do you adjust the value in order to get the best value for PID controller?
Find the general solution of the given second-order differential equation. 1. 4?'' + 9? = 15...
Find the general solution of the given second-order differential equation. 1. 4?'' + 9? = 15 2. (1/4) ?'' + ?' + ? = ?2 − 3x Solve the differential equation by variation of parameters. 3. ?'' + ? = sin(x)
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT