It looks like the capital letter usage is causing the crash (?!) f = figure(); ui = uicontrol(f); set(ui, "text", "a"); // OK set(ui, "Text", "a"); // Crash