Fatiha
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
Estadística
1 Pregunta
0 Respuestas
CLASIFICACIÓN
114.853
of 300.953
REPUTACIÓN
0
CONTRIBUCIONES
1 Pregunta
0 Respuestas
ACEPTACIÓN DE RESPUESTAS
0.0%
VOTOS RECIBIDOS
0
CLASIFICACIÓN
of 21.123
REPUTACIÓN
N/A
EVALUACIÓN MEDIA
0.00
CONTRIBUCIONES
0 Archivos
DESCARGAS
0
ALL TIME DESCARGAS
0
CLASIFICACIÓN
of 171.946
CONTRIBUCIONES
0 Problemas
0 Soluciones
PUNTUACIÓN
0
NÚMERO DE INSIGNIAS
0
CONTRIBUCIONES
0 Publicaciones
CONTRIBUCIONES
0 Público Canales
EVALUACIÓN MEDIA
CONTRIBUCIONES
0 Temas destacados
MEDIA DE ME GUSTA
Feeds
Pregunta
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...
más de 13 años hace | 1 respuesta | 0