How to create zip nested folder in a single folder parent folder

Hello all,
I have parent folder as C:\main_folder and subfolder inside the parent folder as C:\main_folder\sub_folder.
I want to zip the parent folder how can I zip it in matlab?
Thanks in advance

 채택된 답변

Walter Roberson
Walter Roberson 2022년 11월 10일

0 개 추천

https://www.mathworks.com/help/matlab/ref/zip.html
use the three parameter version of zip. Pass '.' as the second parameter and pass the name of the folder as the third parameter.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 File Compression에 대해 자세히 알아보기

질문:

2022년 11월 10일

답변:

2022년 11월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by