Question

Write a computer program that takes as input an angle β and the components of a position vector in frame A (i.e. r). The tran

Please use matlab to code this program.

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

Given that

for the problem to get the rotated matrix you should multiply the position in A coordinate system with the rotation matrix co

so the complete code is closely of the form, ra- inputgive the initial position in the form [x y z]): b-inputenter the angle

***********************************************************END*****************************************************************************

Add a comment
Know the answer?
Add Answer to:
Please use matlab to code this program. Write a computer program that takes as input an angle β and the components of a...
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
  • please use matlab Write a computer program that takes as input two (2) rotation angles a and B (in degrees), and th...

    please use matlab Write a computer program that takes as input two (2) rotation angles a and B (in degrees), and then calculates the DCMs C3 (a) and C1 (B), which correspond to a rotation about the 3-axis and a rotation about the 1-axis, respectively. Once you have done that, calculate the product D = C1C The program should output the following, all labeled with their names and units (if applicable): The input angles a and B C3 D It...

  • I have provided below the problem statement for the assignment, the code should be written in MatLab: Write a computer p...

    I have provided below the problem statement for the assignment, the code should be written in MatLab: Write a computer program that takes as input an angle and the components of a position vector in frame

  • Write a computer code that: 1. (5 points total) Takes as input: a. (1 point) A...

    Write a computer code that: 1. (5 points total) Takes as input: a. (1 point) A position vector (in km) and a velocity vector (in km/s) in ECI coordinates b. (1 point) An initial time t (in secs) c. (1 point) A later time t2 (in secs) d. (1 point) The tolerance Ar e. (1 point) The tolerance AA 2.(5 points total) Outputs the input data with labels and units (as appropriate) 3. (39 points total) Calculates the following: a....

  • matlab Problem 2 Write a computer code that takes as input the inclination angle θ, box...

    matlab Problem 2 Write a computer code that takes as input the inclination angle θ, box weight w and coefficient of function static usand as output: i)- Normal force and maximum friction force i)-Find the force P parallel to the plane(Figure 1) necessary for motion impends up Test your code for: 0.30, w-2001b, 8-300 A, 0.20, w 3001 b, 8-600 For Hs 0.30, W 200lb, Plot the variations of P for angle θ range [0-900] Figure 1. Inclined force P

  • help please! due tomorrow! Write code in Java Write a program that takes as input an...

    help please! due tomorrow! Write code in Java Write a program that takes as input an unordered list of integers, creates a Btree of minimum degree t 4 and then outputs the sorted list of integers. A simple inorder traversal of the B tree will output the list of the integers in a increasing order. You can choose your programming language and the platform you run on. The documentation is required for any programming assignment.

  • Use python 2.7 to write this code: This code takes in a bunch of protein sequences...

    Use python 2.7 to write this code: This code takes in a bunch of protein sequences as input listed below and tracks the highest average TM value (number under each protein) and If a protein has the highest TM value of all proteins found so far, track it. At the very end, the program should print out that as well: For example, at the very end when run, it should print something like this: Protein with the highest TM value:...

  • Please post the code in c++! Computer Labs Write a Computer Labs program to store the...

    Please post the code in c++! Computer Labs Write a Computer Labs program to store the list of user IDs for each computer station using a linked list. Problem Description: You run four computer labs. Each lab contains computer stations that are numbered as shown in the table below: Lab Number Computer station Numbers 1-5 2 1-6 1-4 4 1-3 Each user has a unique five-digit ID number. Whenever a user logs on, the User's ID, labnumber, and the computer...

  • 3. Write a program called VibratingSystem that does the following a. Takes the following as input...

    This two problems go together 3. Write a program called VibratingSystem that does the following a. Takes the following as input i. Spring constant, k; ii. Mass under vibration, m; iii. Coefficient of viscous damping, c, iv. Initial position of the mass. xi, v. And initial velocity of the mass. vi b. If the values k or m are less than or equal to zero, ask for those variables again. c. Plot the results for t from 0 to 20...

  • Please use the JAVA code attached as an input to the program that must be created...

    Please use the JAVA code attached as an input to the program that must be created IN JAVA. Instructions of the program: java code: /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * */ import java.util.Random; public class Rand_Z3_Exp { /** * @param args the command line arguments */ public static void main(String[] args) {...

  • Need help with this Matlab program %% Exercise 1 % NOTE: Please suppress output--i.e., use a...

    Need help with this Matlab program %% Exercise 1 % NOTE: Please suppress output--i.e., use a semicolon ';' at the end of any % commands for which the output is not necessary to answer the question. % Delete these notes before turning in. % Define input variable theta as discretized row vector (i.e., array). theta = ??; % Define radius. r = ??; % Define x and y in terms of theta and r. x = ??; y = ??;...

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