No BSD License  

Highlights from
SplitTxtFile

Be the first to rate this file! 1 Download (last 30 days) File Size: 1.25 KB File ID: #3358
image thumbnail

SplitTxtFile

by Michael Robbins

 

29 Apr 2003 (Updated 30 Apr 2003)

Splits a very large text file into smaller ones.

| Watch this File

File Information
Description

I highly recommend compiling this.

% SPLITTXTFILE(infile,size,formattype,TEST)
%
% Splits text a text file into N lines, such that
% the file size is one line longer than BYTES.
% So if you specify 1 MB files, SPLITTXTFILE will
% split the infile into peices that are 1 MB + 1
% line
%
% inflile is the input file name.
% size is in bytes
% if formattype=0 [default]
% in.txt becomes 001in.txt, 002in.txt, ...
% if formattype=1
% in.txt becomes in.001, in.002, ....
% test=1 then the name of each file will be printed
%
% IT'S NOT FANCY BUT IT WORKS

MATLAB release MATLAB 6.5 (R13)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
14 May 2008 zahra j

hello
i have a large text file.
that size is about 75 Mb and it has headerline.
Now i want to import that file in matlab and use of that for input in neural network tools. but i can't import that text file.
please help me

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
data import Michael Robbins 22 Oct 2008 07:00:42
data export Michael Robbins 22 Oct 2008 07:00:42
file Michael Robbins 22 Oct 2008 07:00:42
split Michael Robbins 22 Oct 2008 07:00:42
text Michael Robbins 22 Oct 2008 07:00:42
txt Michael Robbins 22 Oct 2008 07:00:42
csv Michael Robbins 22 Oct 2008 07:00:42
prn Michael Robbins 22 Oct 2008 07:00:42

Contact us at files@mathworks.com