Hi,
I need to extract illumination and time data from a .mat file and calculate corresponding power output for a particular solar panel. Can anyone help me regarding this ?
Thanks in advance.

1 Comment

If you have trouble with Matlab basics you may consider doing the Onramp tutorial (which is provided for free by Mathworks).
doc load

Sign in to comment.

 Accepted Answer

Star Strider
Star Strider on 18 May 2021
Use the load function, and specifically, Load List of Variables into Structure Array. The structure array then allows selection of specific variables within the file to import into the workspace.

11 Comments

I have 27232842x1 double data in one column of the file, having problem with the sorting and doing the calculations
I am not certain what the problem is, what the data are, or what you want to do with the data in the file.
I can provide more help with a few more details.
It is like, I got 3years of solar illumination data of a particular solar panel, now I need to calculate the output power. I need to seperate the data monthwise, and calculate the output power for a single day.
It would appear that you have a datetime variable with the data as a dependent variable.
There are several ways to deal with it, including converting it to a timetable and using the retime function, using the groupsummary function, and other approaches. Read the documentation for those and related functions (linked to in the documentation pages for those and other related functions). Start with the Timetables documentation and go from there.
thanks for the suggestion, I am going through it.. would comment again if I need more help.
As always, my pleasure!
You should be able to do it without much effort, if you already have a reasonably robust knowledge of MATLAB.
I will help as I can.
I do not have that much knowledge actually, I am just a new learner.. Thank you :)
Raisa Sharmin
Raisa Sharmin on 19 May 2021
Edited: Raisa Sharmin on 19 May 2021
Hi, im using the table2timetable function, my matlab version is R2020_b, and was following this video, but I cannot name the loaded file like this.
https://se.mathworks.com/videos/managing-time-stamped-tabular-data-with-timetable-120888.html
I do not understand thke problem you are having.
Hi, I am sharing the screenshot
As I mentioned earlier, load ‘Alison_intensity_data.mat’ in to a structure. You can then determine what is has in it, and extract it.
D = load('Alison_intensity_data.mat');
time = D.time; % Try Something Like This To Extract It
Apparently, ‘time’ is not already a table, so perhaps using the timetable function instead will be appropriate.
.

Sign in to comment.

More Answers (0)

Categories

Find more on MATLAB 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!