how to select and save particulat part of a column in mat file?

조회 수: 9 (최근 30일)
SimTec
SimTec 2021년 8월 24일
편집: Turlough Hughes 2021년 8월 24일
I have saved a CSV file as mat file and I could read it. the file has many column and each column has thousands of rows.
How can I access and select particular column and sets of rows of these column and save it as matfile?
mydata=readmatrix('TEST.csv');

채택된 답변

Turlough Hughes
Turlough Hughes 2021년 8월 24일
편집: Turlough Hughes 2021년 8월 24일
columns = [2 3 5];
rows = 50:100;
x = mydata(rows,columns);
save('mydata.mat','x')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Workspace Variables and MAT-Files에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by