photo

Fatiha


Actif depuis 2012

Followers: 0   Following: 0

Message

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

Statistiques

MATLAB Answers

1 Question
0 Réponses

RANG
114 921
of 301 020

RÉPUTATION
0

CONTRIBUTIONS
1 Question
0 Réponses

ACCEPTATION DE VOS RÉPONSES
0.0%

VOTES REÇUS
0

RANG
 of 21 135

RÉPUTATION
N/A

CLASSEMENT MOYEN
0.00

CONTRIBUTIONS
0 Fichier

TÉLÉCHARGEMENTS
0

ALL TIME TÉLÉCHARGEMENTS
0

RANG

of 172 370

CONTRIBUTIONS
0 Problèmes
0 Solutions

SCORE
0

NOMBRE DE BADGES
0

CONTRIBUTIONS
0 Publications

CONTRIBUTIONS
0 Public Chaîne

CLASSEMENT MOYEN

CONTRIBUTIONS
0 Point fort

NOMBRE MOYEN DE LIKES

Feeds

Afficher par

Question


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...

plus de 13 ans il y a | 1 réponse | 0

1

réponse