Can someone me with this MATLAB project for my Intro EE class?

Join the discussion
Registration is free. Start your own thread to ask a follow-up.
3 replies · 3K views
vectorwtf1234
abcd
 
Last edited by a moderator:
Physics news on Phys.org
As long as you understand the mathematics, that's the big thing.

The Mathworks (makers of MATLAB) publish some fine documentation, including "Getting Started" stuff:
http://www.mathworks.com/help/techdoc/learn_matlab/bqr_2pl.html

For this project, you'll need to write a .m file--this is just a script that means you don't have to keep on typing the same inputs over and over again.

Now, I'll throw you a bit more of a bone--here's the documentation page for the 'input' function, which you can use to take in user inputs:
http://www.mathworks.com/help/techdoc/ref/input.html

In MATLAB itself, you can type help <command> and bring up the on-the-fly documentation.

Good luck!
 
Perhaps I don't understand the mathematics. I'm now enrolled in pre-calculus, and we're just learning about sin, inverse sin, trigonometric identities, etc etc etc... I don't know what a vector is aside from "magnitude and direction."

I don't have an attempted solution, because I don't even understand the problem. I'm not asking for step-by-step instructions. Can someone please explain the project for me?

In particular, I don't know what "input 3 XYZ points and set them up as vectors (4x1)" even means. Is a point a vector? How does a 4x1 (4 rows, 1 column) even represent a point on a 3D plane?

What does "rotate each vertex by 30 degrees about the x axis..." even mean?

For some reason, your original post has been erased/edited out of existence! To do this problem, you need to have some understanding of matrices and transforms. In particular, the Rotation Matrix is able to rotate points about various axes:
http://en.wikipedia.org/wiki/Rotation_matrix