dicemt / tsv_matlab

Read, write, and convert tsv

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tsv_matlab

Author: Daisuke Matsuyoshi (National Institutes for Quantum Science and Technology (QST) and Araya, Inc.)

Simple functions for processing tsv files using MATLAB (convert xlsx to tsv, read and write tsv)

Usage

Basic usage

xlsx2tsv('data.xlsx', 'out.tsv') % input, output
tsv2xlsx('data.tsv', 'out.xlsx') % input, output
tsvwrite('data.tsv', {'height' 'weight'}, [180 85; 170 70]) % filename, header, matrix data
tsvwrite('data.tsv', {'id' 'food'}, {'25'  'apple'; '64' 'orange'}) % filename, header, cell data
% CSV
csvwrite2('data.csv', {'height' 'weight'}, [180 85; 170 70]) % filename, header, matrix data
csvwrite2('data.csv', {'id' 'food'}, {'25'  'apple'; '64' 'orange'}) % filename, header, cell data

About

Read, write, and convert tsv

License:MIT License


Languages

Language:MATLAB 100.0%