help in inserting figure and also open another window using a gui.
You are now following this question
- You will see updates in your followed content feed.
- You may receive emails, depending on your communication preferences.
An Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Show older comments
0 votes
I have written script files which includes functions in it. These functions deal with displaying figure. What is that i should do inorder to work all these on a single gui. Will this gui can cal another gui window in it? Can anybody help me with some ideas or suggest a link that i can refer to. Thankyou Nithya
Accepted Answer
Chandrasekhar
on 7 Mar 2014
0 votes
you can add 'axes' to your figure file of GUI so that the figure will get displayed in the same gui.
8 Comments
Nithya
on 11 Mar 2014
can you please give me an example showing the command
Chandrasekhar
on 12 Mar 2014
let me understand your question clearly.. do u want to display the image in another window.. or do you want to display all the images in a single window?
Nithya
on 12 Mar 2014
for exapmle when i write a function in pushbutton callback, i want an image to be displayed which should be done in the same gui window.
Chandrasekhar
on 12 Mar 2014
Edited: Chandrasekhar
on 12 Mar 2014
Attached example can help you. if you want to display image then replace the plot command with
image(imread('images.jpg'))
Nithya
on 12 Mar 2014
madam, if i have one axes image in a gui and when i press each pushbutton i want the respective image to fall in that image axes. So i can use the same
%%if X is my image,
image(X)
under each push button would display it right.
Chandrasekhar
on 12 Mar 2014
Yes. do u want to have one axes for each push button or replace the image in the axes every time the push button is pressed.
Salaheddin Hosseinzadeh
on 12 Mar 2014
Nithya you confused everyone I guess! Do us a favor, attach your file so we can exactly see what you're talking about. Meanwhile, it would be a good idea to create a handle for your axes so that you can specify where you want to see the image
h=figure;
figure(h); % makes your figure window current
a=axes();
imshow(cdata,colormap,'Parent',a); % this shows image on axes a on figure h
Good Luck!
Nithya
on 14 Mar 2014
I got things done..I thankyou both for your help.
More Answers (0)
Categories
Find more on Images in Help Center and File Exchange
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)