MATLAB: How to read data from a .mat file

loadmatrix

Hi: I have a .mat file named Ey1a which I need to use it in my code as one of the inputs. The file contains complex data (real and imaginary).I read the file like this:
dlmread Ey1a.mat
but I had this error:
Mismatch between file and format string.
Trouble reading number from file (row 1, field 1) ==> MATLA
Error in ==> fiber_commentedoriginal at 38 dlmread Ey1a.mat;
also, I need to use the conjugate of Ey1a in my code, so how to do this as I can not load the Ey1a.mat file itself

Best Answer

Try
S = load('Ey1a.mat');
and see help for load