MATLAB Answers

LOAD ACTUAL DATA AS INPUT TO PV BLOCK IN SIMULINK

1 view (last 30 days)
fahteem anuwar
fahteem anuwar on 3 Oct 2019
Answered: Rhea Chandy on 6 Nov 2020
How i can used my actual irradiance and temperature data as an input to PV block?
I have all the data in excel and want to used it to evaluate the performance of PV system.
Thanks.

Answers (1)

Rhea Chandy
Rhea Chandy on 6 Nov 2020
Hello!
There are several ways in which you can import excel data and use it in Simulink:
  • Use the From Spreadsheet block in Simulink to read data from Microsoft® Excel® and outputs the data as a signal. Here is a Blog post giving further details on Importing Data From Excel into a simulation using the From Spreadsheet Block.
Or, alternatively, you can import Excel data into MATLAB and then use those MATLAB variables as inputs to Simulink:
  • Use the importdata function in MATLAB and create an array (say ‘A’) of all the values imported and then change the variable name in each block to A(1), A(2),…….A(100)
  • Or similarly, use the Import Tool to import data from a spreadsheet into the MATLAB workspace.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by