Analyzing structures created from .log files

I am currently working to import and analyze a series of .log files. I have been able to load the files into matlab using structures (the output of the script is a 1x3620 structure). Within each structure are fields I want to access and analyze alongside the relevant fields in the other structures. However, I am having trouble accessing the fields. What is the best way to go about this?

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2018년 6월 19일

0 개 추천

Hope you get an array of structures. Take a look at this example and read this Blog structure initialization
clear c;
c(3).f=3;
c(2).f=2;
c(1).f=1;
Access the field across array of structure using
[c.f]

카테고리

도움말 센터File Exchange에서 Structures에 대해 자세히 알아보기

태그

질문:

2018년 6월 19일

답변:

2018년 6월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by