how to read csv file containing text and number

조회 수: 219 (최근 30일)
Mekala balaji
Mekala balaji 2015년 3월 13일
댓글: Arun Kumar Kantheti 2022년 7월 5일
Hi,
I have CSV files containing mixed data(text & number).
[num_data text_data] = xlsread('filename.csv');
but I am getting the same as it is there in the file. I want to read as such every text & number as it is. Please help me how can simply read as it is.
I have attached the files here.
Fulldetails.csv:
RNO 21234 21235
Stage Name AMC.VB10E6T4R30 AMC.VB10E6T4R31
Day/Start 2014/4/23 02:32 2014/6/23 22:45
Day/End 2014/4/24 02:56 2014/6/24 22:55
INT Name CO_Prt_13+_1230eV_dd_23000V CO_Prt_13+_1230eV_IRK
Fulldata.csv:
VSt_No 0 0.02
House_No 3.77 4.66
Ext_I 34.87 45.44
A1 5 4.66
A2 0 0.01
A3 45.98 41.9
VVM 43.33 32
Please help, how to do this.

답변 (1개)

Image Analyst
Image Analyst 2015년 3월 13일
Try this:
t = readtable('Fulldata.csv');
  댓글 수: 5
Yu Wang
Yu Wang 2021년 10월 13일
lol struggling so long with importing date from csv. Thanks
Arun Kumar Kantheti
Arun Kumar Kantheti 2022년 7월 5일
Thanks for this answer.

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

카테고리

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