how to manipulate function hundles ?

when trying to manipulate function hundles (@) by devision for example, I get the message "Undefined operator '/' for input arguments of type 'function_handle'."

1 comentario

Image Analyst
Image Analyst el 5 de Mayo de 2016
The Crystal Ball Toolbox has not yet been released, so until then, you'll need to read this link before we can answer you.

Iniciar sesión para comentar.

Respuestas (1)

Star Strider
Star Strider el 5 de Mayo de 2016
Don’t refer to the function handles, but to the functions themselves in your calculations:
f = @(x) x.^2;
g = @(y) sin(y);
t = 1:10;
q = f(t)./g(t);

Categorías

Más información sobre Antennas and Electromagnetic Propagation en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 5 de Mayo de 2016

Respondida:

el 5 de Mayo de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by