foor loop add function values to an empty vector

Hey, I need help to make a foor loop that adds function values one by one in an empty vector.
The function is f and I need to calculate each value for f from x inside this empty vector y.
x = linspace(-3,3,1000);
f = (1/sqrt(2*pi)) * exp(-(x.^2)/2);
y = zeros(size(f))
for i = 1:size(f)
end

Respuestas (1)

madhan ravi
madhan ravi el 23 de Sept. de 2019

0 votos

How to use for loop to store values MATLAB ? [Google search]

Categorías

Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.

Preguntada:

el 23 de Sept. de 2019

Respondida:

el 23 de Sept. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by