I need to graph a .mat file

2 Ansichten (letzte 30 Tage)
Dodai Xenteltab
Dodai Xenteltab am 31 Mai 2023
Beantwortet: Diwakar Diwakar am 31 Mai 2023
I need to open and plot a .mat file.
I'm trying this:
x = load('female_1.mat');
figure; plot(x.data);
but an error hapen
Reference to non-existent field 'data'.
Any help?

Antworten (1)

Diwakar Diwakar
Diwakar Diwakar am 31 Mai 2023
The error you encountered suggests that the variable data does not exist in the loaded .mat file. The structure of the .mat file may be different from what you expected. To address this issue, you can examine the contents of the .mat file to determine the correct variable name to use.
Here's an example of how you can inspect the contents of the .mat file and find the appropriate variable name:
x = load('female_1.mat');
whos('-file', 'female_1.mat')

Kategorien

Mehr zu Data Import and Analysis finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by