作业帮 > 综合 > 作业

matlab 200分高手请进

来源:学生作业帮 编辑:拍题作业网作业帮 分类:综合作业 时间:2024/05/01 12:44:26
matlab 200分高手请进
Question 1
One of the simplest methods used for encrypting a message in medieval times was to use mirror writing 1.Coded messages are written in a mirror image so that when seen in a mirror they appear decoded - similarly to how the word “AMBULANCE” is written
in a mirror image to appear the correct way when seen in the rear-view mirror of a car.Mirror writing can’t be easily done in MATLAB,so you will instead emulate it by simply coding a message in reverse.Write a function reverse_cipher(message) that takes a plaintext message stored in a
string message and prints the message encrypted by reversing it in the same format as below.
Note :You must NOT use the fliplr function.
Show a screenshot of your function working correctly by replicating the following encryption
>> reverse_cipher(’Leonardo da Vinci’);
The coded message is :icniV ad odranoeL
1The notes on Leonardo da Vinci’s famous Vitruvian Man image are actually in mirror writing.
这是一道英文的matlab 用 mat-lab 如果能写出 英文 comment 就更好了 ,
问题1
为加密的中世纪时代,在邮件中使用最简单的方法之一是使用镜像书写1.编码的信息是用镜像,以便当看到一面镜子,它们出现解码-同样,如何用“救护车”被写入
在镜像显示正确的做法时,在后面的一辆汽车后镜看到.镜像书写不容易做MATLAB的,所以你,而不是简单地模拟编码的逆发送.编写一个函数reverse_cipher(消息),可以对一个明文信息存储在
字符串消息并打印的扭转,下同格式加密的信息.
注意:您不得利用fliplr功能.
显示您的截图功能的工作通过复制以下加密正确
“”reverse_cipher('达芬奇');
该编码的信息是:icniV广告odranoeL
1The在达芬奇著名的维特鲁威人形象地注意到,实际上是镜像书写.