Apparently Matlab load loads the data from a .mat file into the variable that it was saved.
How can you load a single matrix from a .mat or binary file into an arbitrary variable?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Load it in to a struct and pop it out to your variable.
I always use the struct forms of save and load for production code. It’s cleaner because it doesn’t dynamically fiddle with your workspace.
See
help loadfor details.