Matlab code for core point detection

Status
Not open for further replies.

fin_proj

Newbie level 2
matlab code core point

Hi friends.For my project i require Matlab code for core point detection.

sayim133

Newbie level 3
core point detection

Hi,
I wrote a Poincare index function on matlab to detect the core and delta but I am not sure if its correct.

Mohammed

function tres =poin(tt)

vv=[];
vv=[vv,flipdim(tt,1),1)];
vv=[vv; tt(1,2:end)'];
vv=[vv; tt(2:end,size(tt,2))];
vv=[vv; flipdim(tt(size(tt,2),2:end-1)',1)];
res=zeros(size(vv));
for i=1:size(vv,1)-1
res(i)= vv(i+1)-vv(i);
end;
res(size(vv,1))=vv(1)-vv(size(vv,1));

for i=1:size(res,1)
if abs(res(i)) < pi/2
res(i) = res(i);
elseif res(i) < - pi/2
res(i) = pi + res(i);
else
res(i) = pi - res(i);
end;
end;

tres=sum(res);

balti ala

balti ala

Points: 2

sanmee19

Newbie level 2
core point detection for matlab

mohammed, does your code now work?

Akshay Uppal

Newbie level 1
Re: core point detection

Hi,
I wrote a Poincare index function on matlab to detect the core and delta but I am not sure if its correct.

Mohammed

function tres =poin(tt)

vv=[];
vv=[vv,flipdim(tt,1),1)];
vv=[vv; tt(1,2:end)'];
vv=[vv; tt(2:end,size(tt,2))];
vv=[vv; flipdim(tt(size(tt,2),2:end-1)',1)];
res=zeros(size(vv));
for i=1:size(vv,1)-1
res(i)= vv(i+1)-vv(i);
end;
res(size(vv,1))=vv(1)-vv(size(vv,1));

for i=1:size(res,1)
if abs(res(i)) < pi/2
res(i) = res(i);
elseif res(i) < - pi/2
res(i) = pi + res(i);
else
res(i) = pi - res(i);
end;
end;

tres=sum(res);