Picking Variable from Workspace
7 次查看(过去 30 天)
显示 更早的评论
I have three variables pertaining to the same physical quantity (recorded from three different sources). Now, when I process the data, I want to give the control to user to pick one of the three variables based on which source of data he/she considers more reliable. I would like to open a dialog box and make the user pick one variable, copy that variable in another temporary variable within my script and then perform various operations/analsyes. What would be the best way to do something like this?
1 个评论
回答(2 个)
Steven Lord
2016-3-4
Store your data as fields in a struct array. Use FIELDNAMES to determine the files in the struct and let the user select one of those fields. Use dynamic field names to retrieve the appropriate field.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Whos 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!