Storing data of the whole uitable into a variable
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
Rik
2023-11-3
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).
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!