Fatiha
2012 年からアクティブ
Followers: 0 Following: 0
Hi, Please how I can improve my loops bellow:
n=184;
c=0; comp=0
D=zeros(n*(n-1)/2+n_obs*n,1);
for i=1:n
for j=i+1:n
c=c+1;
p=norm(Q(:,j)-Q(:,i));
D(c)=p-R(i)-R(j);
% possibilite de contact
if D(c)< d_risk_pp
comp=comp+1;
contact(comp,1)=i;
contact(comp,2)=j;
p=norm(Q(:,j)-Q(:,i));
E(:,comp)=(Q(:,j)-Q(:,i))/p;
end
end
end
Professional Interests: Mathematic models
統計
MATLAB Answers
1 質問
0 回答
ランク
of 171,851
コントリビューション
0 問題
0 解答
スコア
0
バッジ数
0
コントリビューション
0 投稿
コントリビューション
0 パブリック チャネル
平均評価
コントリビューション
0 ハイライト
平均いいねの数
Feeds
質問
execution of code very long
Hi, I need help to improve the following code. The execution is too long 79.014s function [Dmin]=dist_am(Q,R,Obs,N,d,n_obs...
13年以上 前 | 1 件の回答 | 0