Decode the cryptogram was encoded from 2x2 matrix

조회 수: 26 (최근 30일)
Nguyet Nguyen
Nguyet Nguyen 2022년 8월 14일
편집: KALYAN ACHARJYA 2022년 8월 14일
the cryptogram was encoded with 2x2 matrix What is the message?
5 2 25 11 -2 -7 -15 -15 32 14 -8 -13 38 19 -19 -19 37 16
I first tried to find the inverse of this code and then mutiply with the original one to get a decoded code, but it keeps saying invalid in the inverse command and I can't figure why, please suggest some solutions for me? ( uhm I do not ask for the rest of the code don't get me wrong)
This is my code
X =[5 2; 25 11; -2 -7; -15 -15; 32 14; -8 -13; 38 19; -19 -19; 37 16];
Y = inv(X);
C = mtimes(X,Y);
disp(C)

채택된 답변

KALYAN ACHARJYA
KALYAN ACHARJYA 2022년 8월 14일
편집: KALYAN ACHARJYA 2022년 8월 14일
"but it keeps saying invalid in the inverse command and I can't figure why"
>> X =[5 2; 25 11; -2 -7; -15 -15; 32 14; -8 -13; 38 19; -19 -19; 37 16]
X =
5 2
25 11
-2 -7
-15 -15
32 14
-8 -13
38 19
-19 -19
37 16
Error:
Matrix Rule: Invertible matrices must be square, please see the reason it's why?

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by