How to select and write values from data into excel

조회 수: 1 (최근 30일)
Arslan F
Arslan F 2017년 2월 23일
댓글: Arslan F 2017년 2월 26일
I have a single column of 98820 values i want to divide them into groups of 4941 and write them in separate columns in excel

채택된 답변

Jan
Jan 2017년 2월 23일
x = rand(98820, 1);
y = reshape(x, 4941, 20);
xlswrite(FileName, y);
  댓글 수: 3
Image Analyst
Image Analyst 2017년 2월 25일
Correct (though this more general question wasn't asked). If the vector is not an integer multiple of the number in a group, then Arslan should choose a different group size or else re-think what he wants to do. For the stated numbers, this works.
Arslan F
Arslan F 2017년 2월 26일
98820/4941 is an integer its 20 (its not 98829)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by