Storing data of the whole uitable into a variable

4 views (last 30 days)
I am a beginner in Matlab and my teacher assigned us a task of creating an app where you can store matrices in different variables and then using those variables to conduct different operations(e.g. addition subtraction, multiplication and division). Currently I have only accomplished on inputing data into the uitable as a matrix via inputdlg and planning on adding a "Store" button to store the data from the uitable into a variable. Is there any way to store data from uitable in to a variable?
Here is my file for reference:
  3 Comments
Gustav
Gustav on 3 Nov 2023
May I know your suggestion as to what should I do to store the values inside the uitable into a variable?
Yeah its like creating a calculator for matrices.
Rik
Rik on 3 Nov 2023
The contents of a uitable are stored in the data property, so var=obj.Data is all you need (where obj is the handle to your uitable, probably something like app.table).

Sign in to comment.

Accepted Answer

Taylor
Taylor on 3 Nov 2023
You can use public properties to access variables from an app outside of an app.
  1 Comment
Gustav
Gustav on 4 Nov 2023
Thank you so much for this. So far the app is able to store values of the matrices from the uitable.

Sign in to comment.

More Answers (0)

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!