can I avoid for loop?

2 ビュー (過去 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 Center および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by