How to show the picture in GUI - Programmers Heaven

Howdy, Stranger!

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


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.


  • 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
    [email protected]
Sign In or Register to comment.