4 views (last 30 days)

Hello everyone,

I'm working on a college project that encrypt text messages using LU decomposition and matrix inverse methods.

I need your help in how to let the user enter a variable size matrix to store the key and another for the plain text.

Moreover, how could I convert the letters into certain numbers.

Another last question, how to fill the array with null operators in case the plain text is too short to fill it.

Thanks

Jan
on 22 Nov 2019

"user enter a variable size matrix": It depends on how you want to implement this: by a GUI, as Matlab code, as text file, in Excel?

"another for the plain text": Of course a text file would be my first idea. But a GUI with an edit field would be sufficient also.

"how could I convert the letters into certain numbers": Simply by using the double() command, which converts the characters to their ASCII codes.

"fill the array with null operators": What is a "null operator"? I guess simply using zeros might be fair.

Jan
on 23 Nov 2019

@Fatma: Before the readers can help you efficiently, you have to explain the problem with more details. Currently we know only a rough explanation and it is unclear, which kind of help you need. It matters if the input should be just one or 2 sentences, or 500 pages of text.

Can you post a small and meaningful example of the wanted inputs and outputs?

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

Start Hunting!
## 2 Comments

## Direct link to this comment

https://ww2.mathworks.cn/matlabcentral/answers/492574-variable-size-matrix-and-converting-letters-to-numbers#comment_771277

⋮## Direct link to this comment

https://ww2.mathworks.cn/matlabcentral/answers/492574-variable-size-matrix-and-converting-letters-to-numbers#comment_771277

## Direct link to this comment

https://ww2.mathworks.cn/matlabcentral/answers/492574-variable-size-matrix-and-converting-letters-to-numbers#comment_771931

⋮## Direct link to this comment

https://ww2.mathworks.cn/matlabcentral/answers/492574-variable-size-matrix-and-converting-letters-to-numbers#comment_771931

Sign in to comment.