Email: helpdesk@telkomuniversity.ac.id

This Portal for internal use only!

  • My Download
  • Checkout
Application Package Repository Telkom University
All Categories

All Categories

  • IBM
  • Visual Paradigm
  • Adobe
  • Google
  • Matlab
  • Microsoft
    • Microsoft Apps
    • Analytics
    • AI + Machine Learning
    • Compute
    • Database
    • Developer Tools
    • Internet Of Things
    • Learning Services
    • Middleware System
    • Networking
    • Operating System
    • Productivity Tools
    • Security
    • VLS
      • Office
      • Windows
  • Opensource
  • Wordpress
    • Plugin WP
    • Themes WP
  • Others

Search

0 Wishlist

Cart

Categories
  • Microsoft
    • Microsoft Apps
    • Office
    • Operating System
    • VLS
    • Developer Tools
    • Productivity Tools
    • Database
    • AI + Machine Learning
    • Middleware System
    • Learning Services
    • Analytics
    • Networking
    • Compute
    • Security
    • Internet Of Things
  • Adobe
  • Matlab
  • Google
  • Visual Paradigm
  • WordPress
    • Plugin WP
    • Themes WP
  • Opensource
  • Others
More Categories Less Categories
  • Get Pack
    • Product Category
    • Simple Product
    • Grouped Product
    • Variable Product
    • External Product
  • My Account
    • Download
    • Cart
    • Checkout
    • Login
  • About Us
    • Contact
    • Forum
    • Frequently Questions
    • Privacy Policy
  • Forum
    • News
      • Category
      • News Tag

iconTicket Service Desk

  • My Download
  • Checkout
Application Package Repository Telkom University
All Categories

All Categories

  • IBM
  • Visual Paradigm
  • Adobe
  • Google
  • Matlab
  • Microsoft
    • Microsoft Apps
    • Analytics
    • AI + Machine Learning
    • Compute
    • Database
    • Developer Tools
    • Internet Of Things
    • Learning Services
    • Middleware System
    • Networking
    • Operating System
    • Productivity Tools
    • Security
    • VLS
      • Office
      • Windows
  • Opensource
  • Wordpress
    • Plugin WP
    • Themes WP
  • Others

Search

0 Wishlist

Cart

Menu
  • Home
    • Download Application Package Repository Telkom University
    • Application Package Repository Telkom University
    • Download Official License Telkom University
    • Download Installer Application Pack
    • Product Category
    • Simple Product
    • Grouped Product
    • Variable Product
    • External Product
  • All Pack
    • Microsoft
      • Operating System
      • Productivity Tools
      • Developer Tools
      • Database
      • AI + Machine Learning
      • Middleware System
      • Networking
      • Compute
      • Security
      • Analytics
      • Internet Of Things
      • Learning Services
    • Microsoft Apps
      • VLS
    • Adobe
    • Matlab
    • WordPress
      • Themes WP
      • Plugin WP
    • Google
    • Opensource
    • Others
  • My account
    • Download
    • Get Pack
    • Cart
    • Checkout
  • News
    • Category
    • News Tag
  • Forum
  • About Us
    • Privacy Policy
    • Frequently Questions
    • Contact
Home/Matlab/Trying to create a drop down that will open a new uifigure, nothing happens when I click confirm?

Trying to create a drop down that will open a new uifigure, nothing happens when I click confirm?

/ 2025-01-07
Trying to create a drop down that will open a new uifigure, nothing happens when I click confirm?
Matlab

Im writting a program to process data from different autonomous vehicles. I have 5 different vehicles that I can run and each of their data sets are recorded differently with different options, I have written a robust program that does alot of different things but only for 1 vehicle. Now im trying to expand this program but allowing the user to select the vehicle they ran and want to process. Below is what I have so far:
function [name, dd2_option] = programName()

%//////////////////////////////////////////////////////////////////////////
%////////////////////// VEHICLE SELECTION ////////////////////
%//////////////////////////////////////////////////////////////////////////

%create a small figure to show the pop up menu
fig1 = uifigure(‘Name’, ‘Drop Down Menu’, ‘Position’, [500, 500, 200, 150]);

%figure text
uilabel(fig1, …
‘Text’, ‘Select Vehicle:’, …
‘Position’, [25, 90, 120, 30], …
‘FontSize’, 14);

%drop down menu
dda = uidropdown(fig1, ‘Position’, [25, 50, 120, 30]);
dda.Items = ["Vehicle Selection", ‘USV-1’, ‘USV-2’, ‘AUGV’, ‘UUV’, ‘ROV’];
dda.ItemsData = [0, 1, 2, 3, 4, 5];

%confirm button
btna = uibutton(fig1,’Position’,[25, 10, 120, 30],’Text’,’Confirm’,’ButtonPushedFcn’,@(btn, event) confirmSelection(dda.Value));

%function to determine which dd option was selected
function confirmSelection(selectedOption)
switch selectedOption
case ‘USV-1’
usv1Figure()
case ‘USV-2’
usv2Figure()
case ‘AUGV’
augvFigure()
case ‘UUV’
uuvFigure()
case ‘ROV’
rovFigure()
end
end

function usv1Figure()
delete(fig1)
%start the program for USV1
When I run the code fig1 pops up with my drop down and I can select which option I want. Right now the only value that works is ‘USV-1’ option, when select that nothing happens. What I think it should do is close fig1 with the drop down and open fig2 to start my program. like I said, nothing happens, I dont get any warnings or errors in the command window, fig1 doesnt close, and fig2 doesnt open. Nothing happens. Where am I going wrong? Before I added this I had no issues running my program. Thanks in advance to any help you can give!Im writting a program to process data from different autonomous vehicles. I have 5 different vehicles that I can run and each of their data sets are recorded differently with different options, I have written a robust program that does alot of different things but only for 1 vehicle. Now im trying to expand this program but allowing the user to select the vehicle they ran and want to process. Below is what I have so far:
function [name, dd2_option] = programName()

%//////////////////////////////////////////////////////////////////////////
%////////////////////// VEHICLE SELECTION ////////////////////
%//////////////////////////////////////////////////////////////////////////

%create a small figure to show the pop up menu
fig1 = uifigure(‘Name’, ‘Drop Down Menu’, ‘Position’, [500, 500, 200, 150]);

%figure text
uilabel(fig1, …
‘Text’, ‘Select Vehicle:’, …
‘Position’, [25, 90, 120, 30], …
‘FontSize’, 14);

%drop down menu
dda = uidropdown(fig1, ‘Position’, [25, 50, 120, 30]);
dda.Items = ["Vehicle Selection", ‘USV-1’, ‘USV-2’, ‘AUGV’, ‘UUV’, ‘ROV’];
dda.ItemsData = [0, 1, 2, 3, 4, 5];

%confirm button
btna = uibutton(fig1,’Position’,[25, 10, 120, 30],’Text’,’Confirm’,’ButtonPushedFcn’,@(btn, event) confirmSelection(dda.Value));

%function to determine which dd option was selected
function confirmSelection(selectedOption)
switch selectedOption
case ‘USV-1’
usv1Figure()
case ‘USV-2’
usv2Figure()
case ‘AUGV’
augvFigure()
case ‘UUV’
uuvFigure()
case ‘ROV’
rovFigure()
end
end

function usv1Figure()
delete(fig1)
%start the program for USV1
When I run the code fig1 pops up with my drop down and I can select which option I want. Right now the only value that works is ‘USV-1’ option, when select that nothing happens. What I think it should do is close fig1 with the drop down and open fig2 to start my program. like I said, nothing happens, I dont get any warnings or errors in the command window, fig1 doesnt close, and fig2 doesnt open. Nothing happens. Where am I going wrong? Before I added this I had no issues running my program. Thanks in advance to any help you can give! Im writting a program to process data from different autonomous vehicles. I have 5 different vehicles that I can run and each of their data sets are recorded differently with different options, I have written a robust program that does alot of different things but only for 1 vehicle. Now im trying to expand this program but allowing the user to select the vehicle they ran and want to process. Below is what I have so far:
function [name, dd2_option] = programName()

%//////////////////////////////////////////////////////////////////////////
%////////////////////// VEHICLE SELECTION ////////////////////
%//////////////////////////////////////////////////////////////////////////

%create a small figure to show the pop up menu
fig1 = uifigure(‘Name’, ‘Drop Down Menu’, ‘Position’, [500, 500, 200, 150]);

%figure text
uilabel(fig1, …
‘Text’, ‘Select Vehicle:’, …
‘Position’, [25, 90, 120, 30], …
‘FontSize’, 14);

%drop down menu
dda = uidropdown(fig1, ‘Position’, [25, 50, 120, 30]);
dda.Items = ["Vehicle Selection", ‘USV-1’, ‘USV-2’, ‘AUGV’, ‘UUV’, ‘ROV’];
dda.ItemsData = [0, 1, 2, 3, 4, 5];

%confirm button
btna = uibutton(fig1,’Position’,[25, 10, 120, 30],’Text’,’Confirm’,’ButtonPushedFcn’,@(btn, event) confirmSelection(dda.Value));

%function to determine which dd option was selected
function confirmSelection(selectedOption)
switch selectedOption
case ‘USV-1’
usv1Figure()
case ‘USV-2’
usv2Figure()
case ‘AUGV’
augvFigure()
case ‘UUV’
uuvFigure()
case ‘ROV’
rovFigure()
end
end

function usv1Figure()
delete(fig1)
%start the program for USV1
When I run the code fig1 pops up with my drop down and I can select which option I want. Right now the only value that works is ‘USV-1’ option, when select that nothing happens. What I think it should do is close fig1 with the drop down and open fig2 to start my program. like I said, nothing happens, I dont get any warnings or errors in the command window, fig1 doesnt close, and fig2 doesnt open. Nothing happens. Where am I going wrong? Before I added this I had no issues running my program. Thanks in advance to any help you can give! uifigure MATLAB Answers — New Questions

​

Tags: matlab

Share this!

Related posts

test one two three four
2025-05-20

test one two three four

Is it possible to make this tiny loop faster?
2025-05-19

Is it possible to make this tiny loop faster?

Solar Wind Battery Hybrid Integration
2025-05-19

Solar Wind Battery Hybrid Integration

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

Categories

  • Matlab
  • Microsoft
  • News
  • Other
Application Package Repository Telkom University

Tags

matlab microsoft opensources
Application Package Download License

Application Package Download License

Adobe
Google for Education
IBM
Matlab
Microsoft
Wordpress
Visual Paradigm
Opensource

Sign Up For Newsletters

Be the First to Know. Sign up for newsletter today

Application Package Repository Telkom University

Portal Application Package Repository Telkom University, for internal use only, empower civitas academica in study and research.

Information

  • Telkom University
  • About Us
  • Contact
  • Forum Discussion
  • FAQ
  • Helpdesk Ticket

Contact Us

  • Ask: Any question please read FAQ
  • Mail: helpdesk@telkomuniversity.ac.id
  • Call: +62 823-1994-9941
  • WA: +62 823-1994-9943
  • Site: Gedung Panambulai. Jl. Telekomunikasi

Copyright © Telkom University. All Rights Reserved. ch

  • FAQ
  • Privacy Policy
  • Term

This Application Package for internal Telkom University only (students and employee). Chiers... Dismiss