Can't retrieve data from .mat file
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Craig Johnson
el 31 de Jul. de 2022
Comentada: Craig Johnson
el 31 de Jul. de 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?
Respuesta aceptada
Walter Roberson
el 31 de Jul. de 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Structures en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!