[MATLAB] csv 파일을 내보낼 때 header까지 내보내는 방법
·
카테고리 없음
다음과 같이 MTR_data = rand(144,4); MTR_titles = {'Put' 'Your' 'Titles' 'Here'}; T = array2table(MTR_data,'VariableNames',MTR_titles) writetable(T,'MTR_Stats.csv') type MTR_Stats.csv % check the resulting file 랜덤데이터를 생성한 다음, header로 사용할 cell array를 만들고 이를 가지고 table을 만들어주면 된다.