How to decrypt a .mat file ?

23 ビュー (過去 30 日間)
Chidiebere Ike
Chidiebere Ike 2018 年 10 月 23 日
コメント済み: MOUSSAOUI FAOUZI 2021 年 12 月 31 日
Hi,
Is there any way to go about this? I need an information on how to decrypt a given .mat file named "conf.mat" ?
I have to use this configuration file and make changes on its loaded parameters to suite my work.
Is there anyway this can be decrypted ?
Thanks
  8 件のコメント
Chidiebere Ike
Chidiebere Ike 2018 年 10 月 23 日
Thanks Rik. I appreciate
MOUSSAOUI FAOUZI
MOUSSAOUI FAOUZI 2021 年 12 月 31 日
Hello, all my Matlab files have been encrypted by ransomware online. Is there a way to recover and decrypt Matlab files? Thank you. moussaoui39fa@gmail.com

サインインしてコメントする。

採用された回答

John D'Errico
John D'Errico 2018 年 10 月 23 日
編集済み: John D'Errico 2018 年 10 月 23 日
I believe the complete file specs for a .mat file are not published outside of The MathWorks. That means if you want to fully "decrypt" a .mat file, then change a variable, and save it back out, you have one good option - get a job at The MathWorks.
Of course even then, you still have a problem. Since the .mat files have changed format at times over the years with release changes, anything you did would be potentially version specific, and might not work with a different release.
So the only reliable solution to your problem is to not solve it as you wish. Instead, use load. Load the file, then modify the variables in question, and finally save it back out. This solution is easy and incredibly fast to implement, instead of the complex approach you seem to want to follow.
As far as your comment that you tried it, but not all content was shown, just means you may not understand how to properly use load, or perhaps are not using MATLAB properly. So it is difficult to help you there without seeing what confused you and what you indeed did try.
  44 件のコメント
Walter Roberson
Walter Roberson 2018 年 10 月 27 日
You have
for i = 1:numel(midres)
features = collect(conf, {midres{i}}, conf.upsample_factor, conf.filters);
features = double(features);
end
You do not output features anywhere, so there would not appear to be any point in calculating them.
You are overwriting all of the variable features each round of the loop.
Chidiebere Ike
Chidiebere Ike 2018 年 10 月 27 日
編集済み: Chidiebere Ike 2018 年 10 月 27 日
The attachment I made was what I did so far.
Please please guide me through this sir to achieve this. I wish to compare this Demo_LANR_NLM method alongside other methods with my proposed method and will be good to have DEMO_LANR_NLM in function file like I had others such as BICUBIC, Global Regressor, ANR, LANR etc on "methods" folder.
What I always do is to run the Demo_LANR_NLM code separately to obtain its PSNR and SSIM values and images quality… And run my proposed code separately as well to compare both.
So I felt it will be better to run all at once in my code. Just like the Demo_LANR_NLM code had bicubic, ScSR, ANR, GR and LANR etc in its list of the methods to be compared.
Thats all.
Guide me sir

サインインしてコメントする。

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2018 年 10 月 23 日
https://www.mathworks.com/matlabcentral/answers/15521-matlab-function-save-and-v7-3
Mat files are not encrypted. They are data files, many of the entries are compressed. See the link for Malcolm's utilities.
  2 件のコメント
Fangjun Jiang
Fangjun Jiang 2018 年 10 月 23 日
The OP's question and comments are misleading. They sounded complicated but it turned out to be not knowing a simple command. Now the Q&A are completely off topic.
Chidiebere Ike
Chidiebere Ike 2018 年 10 月 23 日
編集済み: Chidiebere Ike 2018 年 10 月 23 日
I am sorry about that Jiang. My first issue has been solved. Then I presented another here. Here is the link https://www.mathworks.com/matlabcentral/answers/425033-how-do-i-solve-this-error-index-exceeds-matrix-dimensions#comment_625175..
Any contribution will be appreciated.
Thank you so much

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by