photo

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 个回答

排名
114,902
of 300,991

声誉
0

贡献数
1 个提问
0 个回答

回答接受率
0.0%

收到投票数
0

排名
 of 21,133

声誉
N/A

平均
0.00

贡献数
0 文件

下载次数
0

ALL TIME 下载次数
0

排名

of 172,260

贡献数
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 years 前 | 1 个回答 | 0

1

个回答