フィルターのクリア

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 Center および File ExchangeMATLAB Compiler についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by