Need to write a function that rotates cartesian coordinates
显示 更早的评论
I have this homework problem and have no clue where to start. Wondering if the community can help me out. Professor is out of the question to ask for help on this one. We don't get along too well.
I submitted a zipped file. It contains the whole layout of what needs to be done.
Given coordinates, a matrix, turn coordinates around an axis. Make sure inputs are given by command window.
3 个评论
Hikaru
2015-1-30
I'm not sure how to guide you without more information, tell us specifically what have you attempted so far and what are you trying to do but needs help with the coding. If you haven't attempted anything, maybe start from reading the help documentation on function and input.
Raymond Alaniz
2015-1-30
John D'Errico
2015-1-31
I'm not sure where you submitted the file. If anything, it should be as an attachment. Please don't put it on the file exchange.
回答(1 个)
Ahmet Cecen
2015-1-30
0 个投票
Look up rotation matrix or transformation matrix on Wikipedia. Your final function should take coordinates matrix and angle, and spit out
New Matrix = Rotation Matrix * Old Matrix as the answer.
类别
在 帮助中心 和 File Exchange 中查找有关 Simulink 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!