Copy and paste data in the same CSV file using matlab
이전 댓글 표시
Hello, I have a CSV file with 720 rows and 2 columns. First column of the file has to be extrapolated to 1420 rows with some function and second column has to be extrapolated to 1420 rows by copying/repeating the same data as in first 720 rows (original data present in second column). I am Successful in extrapolating the first column but getting stuck in the second column. Can anybody help me? Example:
Original file
0.0 0.82
2.1 0.72
4.2 0.68
6.3 0.15
Modified file
0.0 0.82
2.1 0.72
4.2 0.68
6.3 0.15
8.4 0.82
10.5 0.72
12.6 0.68
14.7 0.15
댓글 수: 1
It is much easier for us if you actually upload a sample file for us to use. This is because peoples descriptions of files, the formatting of HTML text and trying to copy it makes this process very error-prone.
You can upload using the paperclip button, and then pressing both the Choose file and Attach file buttons.
It also helps uf if you format any code correctly using the {} Code button that you will find just above the textbox.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 File Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!