필터 지우기
필터 지우기

how to read excel data

조회 수: 3 (최근 30일)
jimaras
jimaras 2014년 1월 30일
댓글: Azzi Abdelmalek 2014년 1월 30일
Hello everyone,
I want to create a function which will read data from a given excel file and will return different vectors, each corresponding to a different vector (numerical data only). Do you have any idea?
thank you

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2014년 1월 30일
To get numerical data
v=xlsread('your_file.xlsx')
  댓글 수: 5
jimaras
jimaras 2014년 1월 30일
편집: Azzi Abdelmalek 2014년 1월 30일
and in the command window I set
filename='excelfile.xlsx';
Azzi Abdelmalek
Azzi Abdelmalek 2014년 1월 30일
This doesn't make any sens, you are just replacing the function xlsread by Transformation. Just write
K=xlsread('yourfile.xls')
Then do whatever you want with the matrix K. And it's a bad idea to separate it to many vectors. If you want a third column, you can get it by
K(:,3)

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

카테고리

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