Filter löschen
Filter löschen

How to create a password protected zip file using matlab?

14 Ansichten (letzte 30 Tage)
Partha Mitra
Partha Mitra am 6 Jun. 2020
Kommentiert: Walter Roberson am 7 Jun. 2020
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 Kommentare
David Hill
David Hill am 6 Jun. 2020
Recommend encrypting file before zipping.
Partha Mitra
Partha Mitra am 6 Jun. 2020
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

Melden Sie sich an, um zu kommentieren.

Antworten (1)

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

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu MATLAB Compiler finden Sie in Help Center und File Exchange

Produkte


Version

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by