Extracting data from .mat file
이 질문을 팔로우합니다.
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다.
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다.
오류 발생
페이지가 변경되었기 때문에 동작을 완료할 수 없습니다. 업데이트된 상태를 보려면 페이지를 다시 불러오십시오.
이전 댓글 표시
0 개 추천
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
Rik
2021년 5월 18일
If you have trouble with Matlab basics you may consider doing the Onramp tutorial (which is provided for free by Mathworks).
doc load
채택된 답변
Star Strider
2021년 5월 18일
0 개 추천
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
Raisa Sharmin
2021년 5월 18일
I have 27232842x1 double data in one column of the file, having problem with the sorting and doing the calculations
Star Strider
2021년 5월 18일
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.
Raisa Sharmin
2021년 5월 18일
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.
Star Strider
2021년 5월 18일
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.
Raisa Sharmin
2021년 5월 18일
thanks for the suggestion, I am going through it.. would comment again if I need more help.
Star Strider
2021년 5월 18일
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.
Raisa Sharmin
2021년 5월 18일
I do not have that much knowledge actually, I am just a new learner.. Thank you :)
Raisa Sharmin
2021년 5월 19일
편집: Raisa Sharmin
2021년 5월 19일
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
Star Strider
2021년 5월 19일
I do not understand thke problem you are having.
Raisa Sharmin
2021년 5월 19일
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.
.
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 MATLAB에 대해 자세히 알아보기
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
