Hi all.
if a have a function:
x_out = f(x), where x is some vector.
How would i create a new function where a subset of the vector has been given as input:
x_out = f(x(3:4))
Thanks a lot

2 comentarios

Paulo Silva
Paulo Silva el 27 de Mzo. de 2011
you already answered your own question!
Mads Svendsen-Tune
Mads Svendsen-Tune el 27 de Mzo. de 2011
How do you mean?

Iniciar sesión para comentar.

 Respuesta aceptada

Walter Roberson
Walter Roberson el 28 de Mzo. de 2011

0 votos

f34 = @(x) f(x(3:4));

Más respuestas (0)

Productos

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by