For excel, I simply ctrl+A and ctrl+C then ctrl+V all data from Serial monitor to a cell in excel. For matlab, i do the same but save in *.txt format. You may name the file "data.txt".

Then in matlab use these functions:

load ('data.txt');

[row, column] = data; %% to store your data in a matrix with dimesion = row x column

p/s: you better log the data separated by a "tab" rather than a semicolon, comma or a dot.