- since the user has to change more than one params according to your description, use a pushbutton that the user presses when s/he's done inputting values
- save the values inputted into handles.namevar and use guidata(hObject, handles); at the end of end of each callback to save the new handles.
How to change: values in an array and save states of a function in a MATLAB GUI (GUIDE)
1 次查看(过去 30 天)
显示 更早的评论
I am currently working on a GUI to model the effects of low temperature on a PV array. The GUI (as made from the GUIDE) as of now takes in user inputs from text boxes in order to change some of the parameters of the PV modules (such as short circuit current and ideality factor).
The GUI will use a function I have written for calculating current (I) and voltage (V) and generate an IV curve depending on whatever parameters the user inputs. However, I want to the GUI to be able to first generate a general IV curve from a set of parameters that user inputs (which is what the GUI can do as of now). After this, I would like to user to select a cell or row of cells in the array, change the parameters for that single cell, and view its effect on the IV curve of the entire array. So the user would input cell(1,2) or cell(1:3,2) and be able to change the params for those cells only.
How would I be able to run the function multiple times and save the results from each change?
Thanks in advance!
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!