Filter löschen
Filter löschen

can I avoid for loop?

1 Ansicht (letzte 30 Tage)
Arkadiusz
Arkadiusz am 3 Jun. 2014
Beantwortet: Roger Wohlwend am 3 Jun. 2014
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!

Antworten (1)

Roger Wohlwend
Roger Wohlwend am 3 Jun. 2014
No, it is not possible to avoid the two loops.

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by