Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Fast way to apply function to each value of an array?

1 visualización (últimos 30 días)
Toan Nguyen
Toan Nguyen el 13 de Jul. de 2020
Cerrada: Anusha Sridharan el 13 de Jul. de 2020
Hi there,
I created a function Fx which takes in a single value as input, use it for some calculation and produces a single number as output.
I want to apply that function on every values of the array n.
n = 1:300000;
I tried using for loop but it takes too long. Thus, I'm looking for another way to speed it up other than For loop.
Thank you

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by