Truncate file

This function uses a Perl script to truncates a file to a specified number bytes without creating a second copy.

Ahora está siguiendo esta publicación

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.

Citar como

Dan Dolan (2026). Truncate file (https://la.mathworks.com/matlabcentral/fileexchange/182650-truncate-file), MATLAB Central File Exchange. Recuperado .

Agradecimientos

Inspirado por: FileResize

Información general

Compatibilidad con la versión de MATLAB

  • Compatible con cualquier versión

Compatibilidad con las plataformas

  • Windows
  • macOS
  • Linux
Versión Publicado Notas de la versión Action
1.0.0