Can anyone help me interpret and if possible give an example?
조회 수: 1 (최근 30일)
이전 댓글 표시
Write a function ang( v1,v2 ) that takes two vectors of the same length and returns the angle between them in radians.
Here the arrows over letters denote vectors and letter without arrows, the magnitude (length) of the vectors. Your function needs to check that both v1 and v2 are vectors and have the same number of elements. If not, produce an error message with the built-in error function. Also note that v1 and v2 can be row or column vectors.
댓글 수: 0
채택된 답변
David Barry
2016년 12월 8일
This sounds very much like a homework question which we obviously can't give a direct answer for. Have you tried any code so far that you can upload so we can help further? Here are some links that might be useful.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!