Info

This question is closed. Reopen it to edit or answer.

i want to change the HEADING OF PROJECT OUTPUT i mean the text which is rounded by RED COLOR

1 view (last 30 days)

Answers (3)

Walter Roberson
Walter Roberson on 18 Oct 2016
It appears that you are using a GUIDE gui. If so then go into guide, open the gui, click on the title, right click, property inspector, change the string. Save the result.
If you want to change at runtime you would need figure out which handle it is. If you did create it with GUIDE then if you click on the item and then request to view its Callback callback then look at the name of the routine and remove the "_callback" from the name of routine. For example edit1_callback to become edit1 . The name you come up with this way is the name of the object's handle in the handles structure. You can set the String property at runtime
set(handles.edit1, 'string', 'And now for something completely different!')
  12 Comments
Image Analyst
Image Analyst on 27 Oct 2016
It should. We're getting nowhere so it's time for you to call the Mathworks tech support. They can set up a webex where they can see/drive your computer and figure out why right click does not work in GUIDE for you.
Walter Roberson
Walter Roberson on 27 Oct 2016
In your gui.m file, replace
% --- Executes just before gui is made visible.
function gui_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to gui (see VARARGIN)
% Choose default command line output for gui
handles.output = hObject;
ss=ones(256,256);
axes(handles.axes1);
imshow(ss);
axes(handles.axes2);
imshow(ss);
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes gui wait for user response (see UIRESUME)
% uiwait(handles.figure1);
with
% --- Executes just before gui is made visible.
function gui_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to gui (see VARARGIN)
% Choose default command line output for gui
handles.output = hObject;
ss=ones(256,256);
axes(handles.axes1);
imshow(ss);
axes(handles.axes2);
imshow(ss);
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes gui wait for user response (see UIRESUME)
% uiwait(handles.figure1);
set(handles.text6, 'String', 'This is the new string that replaced the old title');
where you need to adjust that last line to whatever it is that you want for the title.
(Note: this is just one additional line at the end of the function; nothing else about the function changes.)

btyt
btyt on 24 Oct 2016
I was checked for title in my .m file but i unable to get it.

Image Analyst
Image Analyst on 25 Oct 2016
It looks like your "title" is actually a string in edit1 or edit2. So just do
handles.edit1.String = 'New title for edit 1'; % Or whatever;
handles.edit2.String = 'New title for edit 2'; % Or whatever;
Basically it's the OOP way of doing what Walter said. Why didn't that work for you?
  5 Comments

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!