Matlab 的table數據使用
Matlab可用來大量讀數據的function
readtable的使用
讀入數據
t = readtable(filename)
讀入特定範圍數據
T = readtable('filename.xls', 'Range', 'C2:E6', 'ReadVariableNames', false)
觀看table特性
t.Properties
t(2, :)
最近一直在用matlab,順手紀錄一下,方便未來查閱
批次讀取檔案路徑,好用的函數dir
讀寫excel的函數xlsread、xlswrite
範例
path = 'YourFolderPath';
% return all of files of the folder
Files = dir(strcat(path,'*.xlsx'));
LengthFiles = length(Files);
for i = 1:LengthFiles
%批次讀取檔案
[number, text, rawData] = xlsread(strcat(path,Files(i).name));
end
參考資料:
青少年非預期單腿落地跳中的性別差異生物力學和能量吸收:對膝關節損傷力學的影響 Sex-specific landing biomechanics and energy absorption during unanticipated single-leg drop-jumps in...