Data conversion, and plotting cell data in excel folder on Matlab.

조회 수: 1 (최근 30일)
nyuklu
nyuklu 2017년 1월 24일
댓글: nyuklu 2017년 1월 27일
My data is in excel folder, and although they are number within the two colomns, when I import these data to MATLAB, its class seems to be "cell", How can I convert these datas to "double" class, and using them draw the data signal on Matlab window.

답변 (1개)

Jan
Jan 2017년 1월 24일
편집: Jan 2017년 1월 25일
I assume "Excel folder" mean an Excel file. Most likely you have imported this file already, then please post the used code. It matters, which output argument of xlsread you are using. The first output should contain numerical data already, see doc xlsread.
[EDITED] With some guessing:
num = xlsread('FileName.xlsx');
plot(num(:, 1), num(:, 2))
  댓글 수: 3
Jan
Jan 2017년 1월 25일
@nyuklu: It is still not clear how your data are stored. Excel files are binary files, so if you see the data as posted, you use any software to import it at first. Please explain, which software is used to display the data as you have posted them as text or as screen shot.
nyuklu
nyuklu 2017년 1월 27일
Dear Jan, thanks for your help, my data is electromyogram (EMG) data and data is acquired using EMGWorks Acquisition software.

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by