Function with Multiple Outputs

3 Ansichten (letzte 30 Tage)
Abdelwahab Fawzy
Abdelwahab Fawzy am 13 Nov. 2015
Beantwortet: James Tursa am 13 Nov. 2015
if i have a function with two outputs , for example :
[m n]=fun(x)
how can i get (n) only without calling (m) first ? ================================================ if i want to get m [m]=fun(x)
but what about getting (n) only ?

Akzeptierte Antwort

James Tursa
James Tursa am 13 Nov. 2015
You can call it like this:
[~,n] = fun(x);

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by