answer this questions please?

3 views (last 30 days)
Abdulrasheed
Abdulrasheed on 23 Oct 2014
Edited: Sean de Wolski on 23 Oct 2014
Please help me to solve this exercise.
the book what we used is Introduction to MATLAB for engineering.
Exercise 1: Project work Turn in a draft of your code for the Project Part 2 - Robot Animation, where the user is given the opportunity to change the major parameters: x0, arm lengths, bolt source location. Some animation code is on pilot in the project folder. Turn in a figure and description of the problem and input parameters you will solve for Part 4. The statics or circuits problem. Turn in your proposal for Part 5. Include a description of the problem your code solves, the user inputs, the outputs, and a general description of the code behavior.
Exercise 2: Orthogonal Polynomial Functions A set of orthogonal functions has the property that any two functions from the set multiplied together and integrated results in 0 unless the two functions are the same function. For the the Legendre polynomials the integral property is: ∫ −1 1 Pm ( x)Pn (x) dx = 2 2 n+1 δmn where δnm={ 1 if (n=m) 0 otherwise . The 5th and 6th Legendre polynomials are P5 (x) = 1 8 (63 x 5−70 x 3 +15 x ) and P6 ( x) = 1 16 (231 x 6−315 x 4 +105 x 2−5) . Plot these functions and use MATLAB's polynomial functions to compute ∫ −1 1 P5 ( x)P6 ( x)dx and ∫ −1 1 P5 ( x)P5 ( x)dx and verify that the integrals are correct.
Exercise 3: Orthogonal Trigonometric Functions With n and m as non negative integers the sine and cosine functions are orthogonal over the range of -π to π. That is ∫−π π sin(n x )sin (m x)dx=π δ mn where δnm={ 1 if (n=m) 0 otherwise . Using the MATLAB integration functions: integral, quad, quadl, quadgk and trapz compute the following integrals: ∫−π π ( sin( 20 x ) + sin( 21 x ) )sin( 21 x )dx and ∫−π π ( sin( 20 x) + sin( 21 x) )sin ( 22 x)dx and compare the results with the ideal solution.
  5 Comments
John D'Errico
John D'Errico on 23 Oct 2014
So make an effort. If you can't bother, then why should someone else do your work for you? I'm sorry, but if these questions are wildly beyond your ability to try, then maybe you are in too advanced of a class?
Andrew Reibold
Andrew Reibold on 23 Oct 2014
This doesn't sound like Intro to Matlab for Engineers lol. I was a TA for a class titled that, and we started with simply making matrices... lol.

Sign in to comment.

Answers (1)

Sean de Wolski
Sean de Wolski on 23 Oct 2014
Edited: Sean de Wolski on 23 Oct 2014
[1] is greek to me but [2] and [3] are fairly straight forward in MuPad. That's how I'd get started:
>>mupad
It even gives you the legendre polynomials:

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!