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 commentaires

Paulo Silva
Paulo Silva le 27 Mar 2011
you already answered your own question!
Mads Svendsen-Tune
Mads Svendsen-Tune le 27 Mar 2011
How do you mean?

Connectez-vous pour commenter.

 Réponse acceptée

Walter Roberson
Walter Roberson le 28 Mar 2011

0 votes

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

Plus de réponses (0)

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by