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 8793543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:08:08+00:00 2026-06-13T23:08:08+00:00

I have two GUI-s. the first GUI is named: GUI1, there the user inserts

  • 0

I have two GUI-s.

the first GUI is named: GUI1, there the user inserts three values.

then the user has a button ‘Submit’, so I want these values to be sent to other function (GUI2) every time he presses it.

my function GUI2.m gets three elements:

function GUI2(x,y,r)
   .
   .
   .
end

and this is the first GUI:

function [E] = GUI1()
    num_of_columns = 3;


    E = [];  % In case the user closes the GUI.
    S.fh = figure('units','pixels',...
          'position',[500 500 850 100],...
          'menubar','none',...
          'name','Number Of Columns',...              
          'numbertitle','off',...
          'resize','off');
    num = 0;
    for i = 1:num_of_columns
        S.ed(i) = uicontrol('style','edit',...
             'units','pix',...
            'position',[num 60 100 30],...
            'string','');
        num = num + 500/num_of_columns;
        uicontrol(S.ed(1))  % Make the editbox active.
     end

     S.pb = uicontrol('style','pushbutton',...
             'units','pix',...
            'position',[290 20 180 30],...
            'string','Submit',...
            'callback',{@pb_call});

     uiwait(S.fh)  % Prevent all other processes from starting until closed.

     function [] = pb_call(varargin)
         % Callback for the pushbutton.
         E = get(S.ed(:),'string');
         E{1} = str2num(E{1});
         E{2} = str2num(E{2});
         E{3} = str2num(E{3});

In this line I want to send E{1}, E{2} and E{3} to GUI2

     end
end
  • 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-06-13T23:08:09+00:00Added an answer on June 13, 2026 at 11:08 pm

    how about:

    GUI2(E{1},E{2},E{3}) 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using two frames. In the first frame I have a button to open
I have a two panel wxPython GUI set up. In my right panel, I
i have two assemblies 1. MyProj.GUI 2. MyProj in MyProj i define an enum
I have two programs: one CLI program, and one GUI. The GUI is a
Say I have two classes, and neither of them are GUI components. Class A
I have a ThreadManager with two Threads. One for gui-relevant requests and one for
Here is the scenario : I have a gui which contains two buttons.Now is
Inside my XAML I have two custom components: <gui:CustomerBrowser x:Name=browser CustomerDetailView=??? VerticalAlignment=Stretch HorizontalAlignment=Stretch />
I have two different threads. the first one is the main thread that must
I have a large set of data from which the user has to select

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.