How to use the MATLAB radio button to switch between 2 matrices

2 Ansichten (letzte 30 Tage)
Sarah Felletter
Sarah Felletter am 20 Jul. 2021
Beantwortet: Jan am 20 Jul. 2021
I'm working on a program where there are 2 matrices that will be used depending on which units you want, and the radio button is going to be used to switch between the matrices. I'm not sure how i would go about this and would appreciate some advice.
I used guide to create the GUI
  1 Kommentar
Jan
Jan am 20 Jul. 2021
It depends. How do you create the GUI: Guide, Code, AppDesigner? Please post, what you have tried so far.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Jan
Jan am 20 Jul. 2021
Check the value of the radio buttons in the callback, which starts the computations. Then use the wanted matrix accordingly.
A more specific answer is possible, if you post your code and explain, where you want to calculate what.

Weitere Antworten (0)

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by