Reading .xlsx data with header text

Hi all, how to read .xlsx data which is having text a header. I want to the same format even after i save the data from matlab to .txt

답변 (1개)

Monika Jaskolka
Monika Jaskolka 2021년 5월 25일

0 개 추천

The readtable function works for both spreadsheet (.xlsx) and text files (.txt). It will also consider the first row as the header.
T1 = readtable('File1.txt');
T2 = readtable('File2.xlsx');

카테고리

태그

질문:

2012년 6월 11일

답변:

2021년 5월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by