How can I generate a grid schematic in MATLAB?

조회 수: 4 (최근 30일)
Roel
Roel 2014년 7월 29일
댓글: Roel 2014년 7월 30일
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
Sara
Sara 2014년 7월 29일
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 2014년 7월 29일
편집: Roel 2014년 7월 29일
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.

댓글을 달려면 로그인하십시오.

채택된 답변

Sara
Sara 2014년 7월 29일
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
Sara
Sara 2014년 7월 30일
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 2014년 7월 30일
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]

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by