Function saying too many outputs
조회 수: 3 (최근 30일)
이전 댓글 표시
I am trying to create a function that takes the i, j, and k values of a vector and calculates the magnitude and unit vector. If I attempt to call the function from the command line, I either only end up with the magnitude, or I get an error. Any suggestions on how to make/change the function to return two outputs?

댓글 수: 0
답변 (1개)
Cris LaPierre
2021년 1월 31일
편집: Cris LaPierre
2021년 1월 31일
Notice the orange highlight and red underline in your function? Hover over that to see what the error message is.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Entering Commands에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!