Second output argument as input argument
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Is it possible to combine the two lines:
[~,b] = myfunction(x);
c = myfunction2(b);
Something like: c = myfunction2(myfunction(x){2}) ??
0 comentarios
Respuesta aceptada
Walter Roberson
el 30 de En. de 2012
There is no MATLAB syntax or built-in function that supports what you want to do, unfortunately.
1 comentario
Daniel Shub
el 30 de En. de 2012
See: http://www.mathworks.com/matlabcentral/answers/1325-what-is-missing-from-matlab#answer_1931
Más respuestas (1)
Andrei Bobrov
el 30 de En. de 2012
create function myfunctionMore:
function out = myfunctionMore(x)
[~,out] = myfunction(x);
and below
c = myfunction2(out);
c = myfunction2(myfunctionMore(x))
0 comentarios
Ver también
Categorías
Más información sobre Get Started with MATLAB en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!