Steps to display image in GUI using Matlab
Step 1: Open GUI
Open Matlab -> Go to Start -> GUIDE(GUI Builder)
Select Blank GUI(Default) in GUIDE Quick Start
Step 2: Create Axes
Click on axes and create axes. Adjust size (width x height) according to your necessary.
Step 3: Save GUI
Now save GUI and click on M-file Editor
Step 4: Write code to display image
Write code after guidata(hObject, handles) in Updata handles structure
axes(handles.axes1);
imshow('G:\display\sample_image.jpg')
Here sample_image is image name & display is folder where image is saved.
Axes1 is name of axes.
It looks like this
% Update handles structure
guidata(hObject, handles);
axes(handles.axes1);
imshow('G:\display\sample_image.jpg')
Step 5: Run GUI
Now click on Run button to see result.

thnx a lot..
ReplyDeletethanks
ReplyDeleteGreat work, Thank you :)
ReplyDeletethank you!
ReplyDeletethank you for your valuable post ...................
ReplyDeleteThank you!! :-)
ReplyDeleteVery Helpful
ReplyDeleteChapeau Merci !
ReplyDelete
ReplyDeleteVery interesting post shared by you
sap training institute in Noida
sap training institute in Delhi
ReplyDeleteI need more information about software course. please keep posting.
SAP training institute in Noida
SAP training institute in Delhi
Really cool post, highly informative and professionally written and I am glad to be a visitor of this perfect blog, thank you for this rare information.
ReplyDeleteSAP hr training institute in Noida
SAP hr training institute in Delhi
Thank you for posting. Very useful content shared by you
ReplyDeletejava training course in Delhi
java training course in Noida
Such an interesting and very helpful post shared by you
ReplyDeletejava training course in Delhi
java training course in Noida
Very good points you wrote here..Great stuff...I think you've made some truly interesting points.Keep up the good work. otherwise anyone want to learn Revit MEP course so contact here- +91-9311002620 or Visit Website- https://www.htsindia.com/Courses/cad-cam-cae/autodesk-revit-mep-training-course
ReplyDelete