Truncate file
Versione 1.0.0 (1,91 KB) da
Dan Dolan
This function uses a Perl script to truncates a file to a specified number bytes without creating a second copy.
Have you ever needed to trim an existing file? MATLAB cannot do this natively without creating a new file, copying the bytes to be kept, and then deleting the original. This function uses a Perl script, which MATLAB can invoke from any* platform without compliation.
*I have not tested MATLAB Mobile.
Cita come
Dan Dolan (2026). Truncate file (https://it.mathworks.com/matlabcentral/fileexchange/182650-truncate-file), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Creato con
R2025b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxTag
Riconoscimenti
Ispirato da: FileResize
Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
| Versione | Pubblicato | Note della release | |
|---|---|---|---|
| 1.0.0 |
