Question

In MATLAB, write your own function of rotating two horizontal components into Radial and Transverse components....

In MATLAB, write your own function of rotating two horizontal components into Radial and Transverse components. Please provide the code.

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

function [Fr, Fn] = Conversion(FX, FY)

% Assume the radial axis is inclined at an angle of Theta = 30 degrees

Theta = 30;

Fr = FY*sind(Theta)+FX*cosd(Theta);
Fn = FY*cosd(Theta)-FX*sind(Theta);

Add a comment
Know the answer?
Add Answer to:
In MATLAB, write your own function of rotating two horizontal components into Radial and Transverse components....
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 the write code using Matlab 8. Write your own code to perform matrix multiplication. Recall...

    Please the write code using Matlab 8. Write your own code to perform matrix multiplication. Recall that to multiply two matrices, the inner dimensions must be Every element in the resulting C matrix is obtained by: Your code must be a function file and it must check to see if matrix multiplication can be performed on the provided matrices. Test your code with the following matrices: 4 4 2 9 -3 A2 17

  • Write your own matlab code to perform matrix multiplication. Recall that to multiply two matrices, the...

    Write your own matlab code to perform matrix multiplication. Recall that to multiply two matrices, the inner dimensions must be the same. Write this as a function with input arguments the matrices to be multiplied and output argument the resultant matrix, use "assert" statement(s) to check that the input arguments are valid and print an error message if they are not. Test with A=[1,2,3;4,5,6] and B=[7,8;9,10;11,12] showing results for: (a) A*B, (b) B*A, and (c) A*A.

  • Write your own MATLAB function to design a low-pass FIR filter. What are the appropriate inputs...

    Write your own MATLAB function to design a low-pass FIR filter. What are the appropriate inputs and outputs? Test your filter for an example and verify that it meets the specified requirements

  • write a Matlab program ( solve the three questions). please use array and create your own...

    write a Matlab program ( solve the three questions). please use array and create your own function to check primality Question 1 : [10 points) Write a MATLAB program that will store all the first 1000 prime numbers in an array variable named arr_of_primes. Please note that a prime number is a positive integer that is bigger than or equal to 2 which is divisible only by 1 and itself. Examples of the first 8 primes are: 2, 3, 5,...

  • ** Please provide a code in MATLAB ** 1. Write a function called taxcalculator that reads...

    ** Please provide a code in MATLAB ** 1. Write a function called taxcalculator that reads an amount in dollars, adds tax based on the table below and return the total with tax using elseif statement. 2. Write a function called printstars that reads the number of rows and returns a triangle of stars similar to the one below:       *      **     ***    ****   *****  ****** ******* ********

  • please solve in matlab 1[35p) Write a user-defined MATLAB function that determines the unit vector in...

    please solve in matlab 1[35p) Write a user-defined MATLAB function that determines the unit vector in the direction of the line that connects two points (A and B) in space. For the func- tion name and arguments, use n = unitvec (A,B). The input to the function are two vectors A and B, each with the Cartesian coordinates of the corre- sponding point. The output is a vector with the components of the unit vector Join the direction from A...

  • 11. Create your own MATLAB function file using Power Method to find the largest eigenvalue. A...

    11. Create your own MATLAB function file using Power Method to find the largest eigenvalue. A matrix and an initial guess can be the inputs and the output should be the largest eigenvalue. Please send the file by email. 11. Create your own MATLAB function file using Power Method to find the largest eigenvalue. A matrix and an initial guess can be the inputs and the output should be the largest eigenvalue. Please send the file by email.

  • Matlab code for this problem. 1[35pl Write a user-defined MATLAB function that determines the unit vector...

    Matlab code for this problem. 1[35pl Write a user-defined MATLAB function that determines the unit vector in the direction of the line that connects two points (A and B) in space. For the func- tion name and arguments, use n = unitvec (A,B). The input to the function are two vectors A and B, each with the Cartesian coordinates of the corre- sponding point. The output is a vector with the components of the unit vector in the direction from...

  • Write your answer code into one function file on matlab

     Write your answer code into one function file on matlab The spiral of Archimedes. The spiral of Archimedes is a curve described in polar coordinates by the equation r= kθ Where r is the distance of a point from the origin, and d is the angle of that point in radians with respect to the origin. Write a function file to compute the spiral of Archimedes with varying number of inputs (no input, one input, two inputs) for k, 0 and varying number of...

  • Your assignment it to write code in matlab that takes an image and remove shadow from...

    Your assignment it to write code in matlab that takes an image and remove shadow from the image. Write the whole code yourself, without using any built-in function. would anyone please help me?

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