indexing - Matlab - Change indexed window title -
i'm having trouble changing windowtitle on specific indexed windows (which not created in code). have 3 windows standard names: figure 1, figure 2 , figure 3 indexed figureid 1,2,3. want able change windowtitle of specific figureid can't work.
i've tried use gcf works great, if tell change figureid 1 changes latest figureinput, figureid 3.
figureid = input('figure-id: '); if ishandle(figureid) newtitle=input('new windowtitle: ','s'); h(figureid) = plot_handles(figureid); set(h(figureid), 'name', newtitle) %set(gcf, 'name', newtitle)% <-- changes last figureid input else disp('invalid figure-id!') end
Comments
Post a Comment