필터 지우기
필터 지우기

separating parts of loaded data

조회 수: 2 (최근 30일)
Alison
Alison 2016년 8월 3일
답변: Walter Roberson 2016년 8월 4일
I have loaded in data files which are doubles of variable size and each have an identifier xma567, xma568 etc. The size is either 1028x2 or 1028xn, with n being greater than 2. I would like to separate out the 1028xn files and add an offset to produce stacked plots. Any suggestions?

답변 (1개)

Walter Roberson
Walter Roberson 2016년 8월 4일
It is not recommended to use individual variables for that purpose.
After you load the data from any one file, you can use size() to check the number of columns, and add it to a cell array of data if it is one of the ones you want to keep. After you have loaded them all you can use the cell array to produce an appropriate plot.

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by