I have a excel file of single row,i want to copy it and paste it in rows below for some number of rows, so that a excel file is of many rows of same values of top original row
조회 수: 2 (최근 30일)
이전 댓글 표시
File of one row is attached here. Iwant it to be 50 rows file of same values
댓글 수: 0
답변 (1개)
Jan Kudlacek
2022년 1월 5일
Hi Manu, try this
t = readtable('avg1.xlsx', 'ReadVariableNames', false);
t = repelem(t, 50, 1); % Fill in the rows
writetable(t, 'avg50.xlsx', 'WriteVariableNames', false)
Cheers,
Jan Kudlacek
참고 항목
카테고리
Help Center 및 File Exchange에서 Histograms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!