can I avoid for loop?

can I avoid this two for loops here?:
f=zeros(size(L,2),20000,10000);
for t=1:10000
for ii=1:20000
f(:,ii,t) = normcdf(L',m(ii,t),s(ii,t));
end
end
where vector L and arrays m and s are defined?
thanks!

Respuestas (1)

Roger Wohlwend
Roger Wohlwend el 3 de Jun. de 2014

0 votos

No, it is not possible to avoid the two loops.

Categorías

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

Etiquetas

Preguntada:

el 3 de Jun. de 2014

Respondida:

el 3 de Jun. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by