Thank you, thank you so much!!! I'm using Matlab R2013b, and the function works perfectly, it does exactly what it is supposed to do. Took me some time to know how to use it properly,but I guess that I was overjoyed when I found this function that I didnt read carefully the description. :p :p I had no other choice but to use a goto function. Thank you again :D
Hi Husam.. The error was that i never was able to run the code within my code. i was however able to run it without issue in many other applications mainly for testing purposes but for this specific application it was not functioning..