Reputation: 157
I have a dataset file called "data.mat", how can I store all the values in that into an array which I wanna name y or f(x) ?
The only thing I know is how to load it for example like this:
load('data.mat');
Upvotes: 0
Views: 139
Reputation: 607
This will load all the values in the MAT file into the struct s, which I think is the behavior you want:
s = load('data.mat');
Upvotes: 1