Borrar filtros
Borrar filtros

Function with Multiple Outputs

1 visualización (últimos 30 días)
Abdelwahab Fawzy
Abdelwahab Fawzy el 13 de Nov. de 2015
Respondida: James Tursa el 13 de Nov. de 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 ?

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by