I am really new in matlab programming and I wanted to finish my recursive fuction called partition,
Is a function how find contact points with some conditions implemented in existCP function.
I get the solution of my problen when c(1) == b(1) (STOP CONDITION), but when it should left the partition funcion and export CP as resullt in Recursive function it doesn´t work.
I mean when I run Partition in debugger, the green arrow goes out of partition function but then instead of finish Recursive function the green arrow comes again in Particion(P,X,r,c,b,puntos).
for jj = 1:n-1
function [CP] = Particion(P,X,r,a,b,points)
if c(1) == b(1)
points = [points;c];