필터 지우기
필터 지우기

How to manipulate an array

조회 수: 1 (최근 30일)
Brady Wayne Robinson
Brady Wayne Robinson 2018년 9월 27일
댓글: Jacob Wood 2018년 9월 27일
I have three excel spread sheets. They are 17 columns by 4800 rows. I need to divide the last time point entry for each subject (column 17) by the number of data points (length of that array) for that subject. I am not sure what code is needed. Thank you!
  댓글 수: 3
madhan ravi
madhan ravi 2018년 9월 27일
Could you upload a sample?
Jacob Wood
Jacob Wood 2018년 9월 27일
Brady,
Are you able to read in the Excel table to a Matlab array? Some functions of interest here might be xlsread() or readtable().
After you have an array you can find the number of data points, or the height of the array, with size(A,1). You can use this value to write the 18th column of data.
Finally, you can write out the data with a function like xlswrite() or writetable().
Best, Jacob

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

답변 (0개)

카테고리

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

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by