필터 지우기
필터 지우기

How to create a password protected zip file using matlab?

조회 수: 14 (최근 30일)
Partha Mitra
Partha Mitra 2020년 6월 6일
댓글: Walter Roberson 2020년 6월 7일
Query is on : create a password protected zip file using matlab
I already used as below:
7z a archive.7z -psecret *.mat
But I am getting error: Error: Unexpected MATLAB expression. (Used Matlab R2017b)
  댓글 수: 2
David Hill
David Hill 2020년 6월 6일
Recommend encrypting file before zipping.
Partha Mitra
Partha Mitra 2020년 6월 6일
Sorry I modified my earlier comment:
7z a archive.7z -psecret *.mat
I was getting error.
Error: Unexpected MATLAB expression. (Used Matlab R2017b)
What do I have to do to encrypt *.mat file

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2020년 6월 6일
! 7z a archive.7z -psecret *.mat
or
system('7z a archive.7z -psecret *.mat')
  댓글 수: 4
Partha Mitra
Partha Mitra 2020년 6월 7일
It worked, with following way:
system('"C:\Program Files\7-Zip\7z.exe" a arc.7z -psecret *.mat')
Walter Roberson
Walter Roberson 2020년 6월 7일
Using an exact path like you did is often a good idea for reliability... on any one system... but unfortunately not always portable.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by