Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

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

1 Ansicht (letzte 30 Tage)
Daniela Alvarado Firma
Daniela Alvarado Firma am 12 Okt. 2020
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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

Antworten (1)

Rik
Rik am 12 Okt. 2020
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