Clear Filters
Clear Filters

Function with Multiple Outputs

1 view (last 30 days)
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 ?

Accepted Answer

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

More Answers (0)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!