Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
I need two outputs and I'm only getting one, please help me
조회 수: 1 (최근 30일)
이전 댓글 표시
I need two outputs, I'm measuring the resultant force and angle as u can tell. but i'm only getting the resultant force. all the help will be appreacited
댓글 수: 1
답변 (1개)
Rik
2020년 10월 12일
You didn't actually assign any outputs, so Matlab only stores the first one in ans. If you want to actually store variables you should call your function with multiple output parameters, e.g. by putting the line below in your command window.
[R,A]=vectorAddF(10,8,10);
clc,disp(R),disp(A)
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!