Question

Using matlab solve the problem in the Q

Using matlab solve the problem in the Q
Using matlab solve the problem in the Q
Using matlab solve the problem in the Q
0 0
Add a comment Improve this question Transcribed image text
Answer #1

function [m] = rotate_matrix(a,b,c);

ca=cos(a);
sa=sin(a);
cb=cos(b);
sb=sin(b);
cc=cos(c);
sc=sin(c);
m1=[1 0 0;0 ca -sa;0 sa ca];%rotation only about x axis
m2=[cb 0 sb;0 1 0;-sb 0 cb];%rotation only about y axis
m3=[cc -sc 0;sc cc 0;0 0 1];%rotation only about z axis

m=m1*m2*m3;

Add a comment
Know the answer?
Add Answer to:
Using matlab solve the problem in the Q
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
  • USE MATLAB TO SOLVE THIS PROBLEM USE MATLAB TO SOLVE THIS PROBLEM USE MATLAB TO SOLVE...

    USE MATLAB TO SOLVE THIS PROBLEM USE MATLAB TO SOLVE THIS PROBLEM USE MATLAB TO SOLVE THIS PROBLEM USE MATLAB TO SOLVE THIS PROBLEM USE MATLAB TO SOLVE THIS PROBLEM 3. The range, r, of a cannon projectile under the influence of gravity, g-9.81 m/s, and fired with muzzle velocity vo 10 m/s is determined by the angle its barrel makes with the ground, t. From your Physics classes you will recall that the range is calculated as: r() =...

  • Solve the following Using MATLAB. (Please show the coding Script) 13. Solve Problem 13 Using MATLAB...

    Solve the following Using MATLAB. (Please show the coding Script) 13. Solve Problem 13 Using MATLAB Given the unity feedback system of Figure P6.3 with G(S) = 5(56 – 233 - 5 + 253 + 432 – 85 - 4) tell how many closed-loop poles are located in the right half-plane, in the left half-plane, and on the jw-axis. (Section: 6.3) MATUA

  • Q.1 Solve the following differential equation in MATLAB using solver ‘ode45’ dy/dt = 2t Solve this...

    Q.1 Solve the following differential equation in MATLAB using solver ‘ode45’ dy/dt = 2t Solve this equation for the time interval [0 10] with a step size of 0.2 and the initial condition is 0.

  • First solve by hand then using MATLAB and include the code

    first solve by hand then using MATLAB and include the code 3. (All students!) Find the exact solution to the problem 4x, x2 +2x 4 xi +x2 +4x3=-1 Now use MATLAB to solve this system iteratively, using the Jacobi iteration method. 3. (All students!) Find the exact solution to the problem 4x, x2 +2x 4 xi +x2 +4x3=-1 Now use MATLAB to solve this system iteratively, using the Jacobi iteration method.

  • SOLVE USING MATLAB Problem 22.1A. Solve the following initial value problem over the interval fromt 0...

    SOLVE USING MATLAB Problem 22.1A. Solve the following initial value problem over the interval fromt 0 to 5 where y(0) 8. Display all your results on the same graph. dt The analytical solution is given by: y(0) - 4e-0.5t (a) Using the analytical solution. (b) Using Eulers method with h 0.5 and 0.25 (c) Using the midpoint method with h 0.5. (d) Using the fourth-order RK method with h 0.5.

  • Write a matlab script(using only matlab) for this. Write a script to solve the following problem:...

    Write a matlab script(using only matlab) for this. Write a script to solve the following problem: Ask the user for the length and the width of a rectangle. These need to be passed to a function. The function is to calculate and return the area and the perimeter of the rectangle. The area is the length times the width and the perimeter is 2 times the length and 2 times the width. Make sure to suppress all output from the...

  • PLEASE SOLVE IN MATLAB ! SOLVE IN MATLAB !SOLVE IN MATLAB !SOLVE IN MATLAB !SOLVE IN...

    PLEASE SOLVE IN MATLAB ! SOLVE IN MATLAB !SOLVE IN MATLAB !SOLVE IN MATLAB !SOLVE IN MATLAB ! Question 4 [25pts]: Plot y[n] = cos(na) by using stem command. For the sake of visuality, take n from 0 to 30 with an increment of 1. Is the signal periodic? If so, please show its fundamental period from the plot.

  • Q: please solve using matlab code withe comment 1.      Write the Matlab code to generate: x...

    Q: please solve using matlab code withe comment 1.      Write the Matlab code to generate: x = cos(w1*t) + cos(w2*t); where, w1=7; w2=23; t = [0:0.005:2] 2.   Plot the signal using sub plot a.   in time domain b.   in frequency domain 3)   Sample the signal under different sampling conditions: a.      Ts<1/2fm b.      Ts=1/2fm c.       Ts>1/2fm 4).      Multiple plot: the signal sampled under sampling condition and the signal x a.      in time domain b.      in frequency domain c.       Label and Title...

  • using matlab to solve this problem as soon as possible thanks use matlab to slove the...

    using matlab to solve this problem as soon as possible thanks use matlab to slove the problem as soon as possible solve the activity of number 1&2&3 by using matlab for this problem i need from you to solve activity one and two and three by using matlab DIRECTIONS: Perform the following using MATLAB. After the simulation, your report must be uploaded in the Moodle Learning system. ACTIVITY I. VECTORS AND ITS OPERATIONS Procedure 1: Define two vectors a and...

  • Solve in Matlab by using Script file: Problem 4: Write a user-defined MATLAB unction that calculates...

    Solve in Matlab by using Script file: Problem 4: Write a user-defined MATLAB unction that calculates the determinant of a 3x3 matrix by using the formula: A22 A23 11 A32 A33 A23 A12 A31 A33 21 A For the function name and arguments use d3-det3by3 (A), where the input argument A is the matrix and the output argument d3 is the value of the determinant. Write the code of det3by3 such that it has a subfunction that calculates the 2x2...

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
ADVERTISEMENT