Given a .mat file how would I load the file into a script

Answers (1)

S=load(matfilename_as_string_with_the_explicit_path);
plot(S.t,S.amp)

1 Comment

(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.)

Sign in to comment.

Tags

Asked:

on 19 Nov 2017

Commented:

on 19 Nov 2017

Community Treasure Hunt

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

Start Hunting!