how can i compress a text file using textscan?

how can i compress a text file using textscan? i have to compress a textfile,i think using textscan would be better...i can't seem to understand the format.

Respuestas (2)

Walter Roberson
Walter Roberson el 10 de Jun. de 2013

0 votos

textscan() is not useful for compressing files; it is only useful for reading in data. Though it could potentially be useful in reading data from a file in order to further process the data for the purpose of compression.
Normally if you were going to compress a file you would read the file with fread() (or perhaps fileread)
Jan
Jan el 10 de Jun. de 2013
Editada: Jan el 13 de Jun. de 2013

0 votos

Did you ask your favourite search engine for "Matlab compress files" already? You'd find zip() immediately.

Categorías

Más información sobre Large Files and Big Data en Centro de ayuda y File Exchange.

Preguntada:

el 10 de Jun. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by