Can't retrieve data from .mat file
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Craig Johnson
am 31 Jul. 2022
Kommentiert: Craig Johnson
am 31 Jul. 2022
Code:
input=load('MetData.mat')
output:
input =
struct with fields:
T: [5×10 double]
p: [5×10 double]
How can I extract the arrays and not just the dimensions of the arrays?
Akzeptierte Antwort
Walter Roberson
am 31 Jul. 2022
temperature = input.t;
pressure = input.p;
Note that we recommend against using "input" as the name of a variable, as it gets confused with the input() function
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with 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!