Azzera filtri
Azzera filtri

Functions

2 visualizzazioni (ultimi 30 giorni)
Mads Svendsen-Tune
Mads Svendsen-Tune il 27 Mar 2011
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 Commenti
Paulo Silva
Paulo Silva il 27 Mar 2011
you already answered your own question!
Mads Svendsen-Tune
Mads Svendsen-Tune il 27 Mar 2011
How do you mean?

Accedi per commentare.

Risposta accettata

Walter Roberson
Walter Roberson il 28 Mar 2011
f34 = @(x) f(x(3:4));

Più risposte (0)

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by