1

I want to load specific column form .mat file already exist in the work space after I load it how should I write then ?

Shai
  • 111,146
  • 38
  • 238
  • 371
Ocean Blue
  • 33
  • 4
  • 7

1 Answers1

3

You can access part of a variable saved in a MAT file using MATFILE constructor (available since R2011b). Check my answer to another similar question.

For example, if you have matrix a saved in matlab.mat file you constract the matfile object as

matObj = matfile('matlab.mat');

Then you can access 2nd column like x = matObj.a(:,2);.

Community
  • 1
  • 1
yuk
  • 19,098
  • 13
  • 68
  • 99