Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4555826
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T17:16:50+00:00 2026-05-21T17:16:50+00:00

Hi I am trying to create a GUI to link to my 3 m

  • 0

Hi I am trying to create a GUI to link to my 3 m files.

1) findcontrolpoints.m
2) morph.m
3) morphvideo.m

In 1), I need to get user input of the number of points. The input will be entered in the GUI, then I wish to pass the variable on to the findcontrolpoints.m file for processing. This is will done by pressing pushbutton1. Is there any way to do that?

function inputpoints_Callback(hObject, eventdata, handles)
% hObject    handle to inputpoints (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of inputpoints as text
%        str2double(get(hObject,'String')) returns contents of inputpoints as a double
input = str2num(get(hObject, 'String'));

if (isempty(input))
    set(hObject, 'String', '50')
end
guidata(hObject, handles);


% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% hMainGui = getappdata(0, 'hMainGui');

% fileName = uigetfile('*.jpg');
points = get(handles.inputpoints,'String');

findfeaturepoint(points);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T17:16:50+00:00Added an answer on May 21, 2026 at 5:16 pm

    Would something like this work for you ? I just re-used an old piece of GUI from another project, so you can pretty much get rid of all the options and it will still work.

    function interface
    % Main figure
    figure('units','normalized',...
        'position',[0.25 0.25 0.5 0.5],...
        'color',[1 1 1]*0.5,...
        'numbertitle','off',...
        'name','Interface',...
        'menubar','none',...
        'toolbar','none',...
        'tag','main');
    % Data structure
    data=guihandles(gcf);
    % Input field
    uicontrol('parent',data.main,...
        'style','text',...
        'string','Number of points',...
        'horizontalalignment','center',...
        'backgroundcolor',[1 1 1]*0.5,...
        'units','normalized',...
        'position',[0.4 0.7 0.2 0.1]);
    uicontrol('parent',data.main,...
        'style','edit',...
        'horizontalalignment','center',...
        'string','0',...
        'backgroundcolor',[1 1 1],...
        'units','normalized',...
        'enable','on',...
        'position',[0.4 0.6 0.2 0.1],...
        'tag','input');
    % Submit
    uicontrol('parent',data.main,...
        'style','pushbutton',...
        'string','Submit',...
        'units','normalized',...
        'enable','on',...
        'position',[0.4 0.45 0.2 0.1],...
        'tag','submit',...
        'callback',@submit);
    % Data structure
    data=guihandles(gcf);
    % Program parameters
    data.default=50;
    % ... %
    guidata(gcf,data);
    end
    % Callbacks
    function submit(obj,event) %#ok
    % Data structure
    data=guidata(gcbf);
    input=get(data.input,'string');
    % Input validation
    % ... %
    % Functions call
    % ... %
    guidata(gcbf,data);
    end
    

    You just have to call your three functions from the callback after valdating the input.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create this simple GUI where the number of clicks is
I'm trying to create a GUI Python app using Py2App, but am having trouble
I am trying to create a GUI using java swing. From there I have
I'm trying to create a GUI using Java by hand-coding it (without using GUI
I am trying to create my first GUI application using (Java + Eclipse +
I am trying to create this QT gui using a thread but no luck.
I am trying to create a simple GUI form which has only 2 elements
I'm trying to create a responsive gui, which basically means that I have an
I begin in GUI with Tkinter with Python. I'm trying to create a graphical
I'm trying, for the first time, to create a GUI in Ruby using Tk.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.