Filter löschen
Filter löschen

how to plot 1x22000 struct with 1 field??

1 Ansicht (letzte 30 Tage)
john karli
john karli am 30 Nov. 2019
Kommentiert: per isakson am 8 Dez. 2019
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 Kommentare
Adam Danz
Adam Danz am 30 Nov. 2019
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 am 1 Dez. 2019

Melden Sie sich an, um zu kommentieren.

Antworten (1)

per isakson
per isakson am 30 Nov. 2019
Bearbeitet: per isakson am 30 Nov. 2019
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 Kommentare
john karli
john karli am 1 Dez. 2019
i download datset from above link and i'm trying to plot it.
per isakson
per isakson am 8 Dez. 2019
I failed to unpack the mat-files
Capture.PNG

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by