% --- Executes on button press in size.
function size_Callback(hObject, eventdata, handles)% hObject handle to size (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
info = imfinfo(image);s=strcat(info.Width,info.Height);set(handles.text2,'string',num2str(s));guidata(hObject, handles);% --- Executes on button press in open.
function open_Callback(hObject, eventdata, handles)% hObject handle to open (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)[filename, path1 ]= uigetfile('*.*', 'MultiSelect', 'on'); image = imread(filename); p=strcat(path1,filename); axes(handles.axes1); imshow(image); guidata(hObject, handles);set(handles.path,'string',p);set(handles.text4,'string',filename);
MATLAB: I have a problem. Help me please! I want to show a size of a picture
show size
Best Answer