Matlab App Designer AXES BUTTONDOWNFCN
function lineCallback(src,~)
src.Color = rand(1,3);
end
Noob_Code
function lineCallback(src,~)
src.Color = rand(1,3);
end