How to change: values in an array and save states of a function in a MATLAB GUI (GUIDE)

4 views (last 30 days)
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!
  3 Comments
Roel
Roel on 4 Aug 2014
Edited: Roel on 4 Aug 2014
I have attached the script for the GUI I have up until now. I do have the user press a pushbutton to plot. The way I have the function do multiple cells in series of parallel is by replicating the matrices for current and voltage according to how many cells are in question. So I would want the user to be able to use the CalculationIVRsRsh(Isc, Voc, T, n, Rs, Rsh) function to generate a new column (or row) and replace one of the columns/rows in the replicated matrix array.
I don't know if I am making sense yet, let me know if you have any more questions to understand what I'm trying to do.

Sign in to comment.

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!