Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

How to show the picture in GUI

ayuniayuni Posts: 27Member
i have problem to convert the coding m.file to m.file for GUI.i cannot understand how to manage my coding in m.file without GUI to m.file in GUI. How can i view the image that i find from my file to axes that i already create to place that picture.

Comments

  • vickybvickyb Posts: 1Member
    if you have created a structure for your image then you will see a function like the bellow,put your image there:-

    function Etiqbutton_OpeningFcn(hObject, eventdata, handles, varargin)
    |
    | [x,map]=imread('image.jpg','jpg');
    | image(x),colormap(map),axis off,hold on
    |
    |
    guidata(hObject, handles);


    dont copy paste the code, just copy imread and imshow two lines...

    --
    Vicky Budhiraja
    Technical Architect, Sitarasoft
    Vicky.budhiraja@sitarasoft.com

    http://www.Sitarasoft.com
Sign In or Register to comment.