Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

I need two outputs and I'm only getting one, please help me

조회 수: 1 (최근 30일)
Daniela Alvarado Firma
Daniela Alvarado Firma 2020년 10월 12일
마감: MATLAB Answer Bot 2021년 8월 20일
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개)

Rik
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)

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by