Given a .mat file how would I load the file into a script
Show older comments
to plot a time vs amplitude figure
Answers (1)
Rik
on 19 Nov 2017
S=load(matfilename_as_string_with_the_explicit_path);
plot(S.t,S.amp)
1 Comment
Walter Roberson
on 19 Nov 2017
(This assumes that the variable names in the file are "t" and "amp". Change the S.t and S.amp to suit the variable names in the file.)
Categories
Find more on Workspace Variables and MAT Files in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!