How can I generate a grid schematic in MATLAB?

3 vues (au cours des 30 derniers jours)
Roel
Roel le 29 Juil 2014
Commenté : Roel le 30 Juil 2014
Hi guys, 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).
However, the GUI ideally should be able to output a grid of cells whose dimensions correspond to however many cells are wired in series and in parallel. The user would then click on individual cells and be able to change the individual characteristics of each cell and view its IV curve.
How can you generate a grid of images that can change according to user input? For example if the user states that there are 2 rows of 5 cells wired in series connected to each other in parallel, the GUI will display a 2x5 array of cells. I have the actual equations written for manipulating the IV curves already written but I don't know how to generate this grid of cells.
Thanks in advance!
  2 commentaires
Sara
Sara le 29 Juil 2014
What do you need to plot the cells for? Are they editable or is that just an image? Do you want to show connections among them too? can you attach an image of what you want (done in power point, or paint, or by hand and scanned,..., nothing fancy needed)?
Roel
Roel le 29 Juil 2014
Modifié(e) : Roel le 29 Juil 2014
Something like this, it should just be an image (not editable), but the actual array should change. For example, I have attached a 3x5 array. I would want this to also generate a 4x5 and any n x m array.
Each of the individual cells can be selected by the user and have its individual IV curve and parameters shown/edited.

Connectez-vous pour commenter.

Réponse acceptée

Sara
Sara le 29 Juil 2014
Take a look at the code. nrow and ncol will be your adjustable inputs. Now the code wait for the user to click on the image (ginput); you can change that behavior by checking the mouse click. It really depends on what you want to do.
  15 commentaires
Sara
Sara le 30 Juil 2014
Ok, it took me a while but I finally understood. So, where do you load a default size of the array + default values that the user can change in your code?
Roel
Roel le 30 Juil 2014
As of now they don't have default values, the user would input the values according to the type of solar cell they are working with. But soon I will set it to the default values of the type of cells we use in our lab, which is:
Series res: [0 0 0] Shunt res: [10000 10000 10000] Short circuit current: [1.8 1.9 3] Open circuit voltage: [1.4 1 0.3] Ideality factor: [3 3 3]

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Live Scripts and Functions dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by