Compressing file into zip file
13 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Suppose I have 5 Matlab files (naming 1.m to 5.m)
I want to compress 2.m and 3.m into 1 zip file; 4.m and 5.m into another zip file
Then compress all 3 files (1.m and 2 compressed files above) into 1 zip file
So the final result is 1 zip file that contains 3 files, 2 of which are comprised of 2 files
Does anyone know how to do so ?
0 commentaires
Réponses (1)
Jan
le 21 Nov 2018
This is easy with the GUI of e.g. 7zip. But do you want to do this inside Matlab? Then what exactly is the problem?
zip('first.zip', {'2.m', '3.m'});
zip('second.zip', {'4.m', '5.m'});
zip('third.zip', {'1.m', 'first.zip', 'second.zip'});
0 commentaires
Voir également
Catégories
En savoir plus sur Audio and Video Data dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!