how to plot 1x22000 struct with 1 field??

I have signal data which contain 1x1 struct with 22000 field i want ot plot these. I also upload the workspace of dataset.thank you

댓글 수: 5

Stephan
Stephan 2019년 11월 30일
You missed to attach the .mat-file
Stephen23
Stephen23 2019년 11월 30일
편집: Stephen23 2019년 11월 30일
"1x1 struct with 22000 field"
Ugh, what incredibly badly designed, inefficient data.
"1x22000 struct with 1 field"
Which is correct?
john karli
john karli 2019년 11월 30일
편집: john karli 2019년 11월 30일
data is 155mb which can't be uploades here. i can email it to you or share with you in google drive if you dont mind to drop your email here. Thank you
Adam Danz
Adam Danz 2019년 11월 30일
Without knowing anything about this structure array, my in-the-dark advice is to try converting the struct array to a cell array or table.
john karli
john karli 2019년 12월 1일

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

답변 (1개)

per isakson
per isakson 2019년 11월 30일
편집: per isakson 2019년 11월 30일

0 개 추천

The screenshot of the Command Window shows that the data-20.mat contains Qt, which is a <1x22000 struct>.
I assume that Qt has a field called val, the value of which you want to plot. Try plot([a.Qt.val])
Example
a.Qt(1).val = 1;
a.Qt(2).val = 2;
a.Qt(3).val = 3
outputs
a =
struct with fields:
Qt: [1×3 struct]
and
>> [a.Qt.val]
ans =
1 2 3
>>

댓글 수: 2

john karli
john karli 2019년 12월 1일
i download datset from above link and i'm trying to plot it.
per isakson
per isakson 2019년 12월 8일
I failed to unpack the mat-files
Capture.PNG

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

카테고리

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

질문:

2019년 11월 30일

댓글:

2019년 12월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by