%% binary files: *.mat; matlab.mat - system file clear A=2*ones(3); B=eye(4); C=randi(6,2,4); F=blkdiag(A,B,C); save Lecture2 F A C % compare with: save Lecture2 F A, C clear load Lecture2 F % compare with: load Lecture2 %% *.txt any text files, f.e. *.dat % p.23 inp - attention! load 'inp.txt' % load inp.txt - other syntax, matrix-inp inp inp(:) %% xlsread ~ readtable(youself) explaination - p.25