Hi, so i figured out my problem. the function colorgen (received from the page above) was being declared in a function that wasn't being called yet. Thus I assume matlab did not know how colorgen was being defined.
I placed the colorgen function in the opening function of my GUI.
Best Answer