can I avoid for loop?

조회 수: 3 (최근 30일)
Arkadiusz
Arkadiusz 2014년 6월 3일
답변: Roger Wohlwend 2014년 6월 3일
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!

답변 (1개)

Roger Wohlwend
Roger Wohlwend 2014년 6월 3일
No, it is not possible to avoid the two loops.

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by