![]() ![]() num2str - Takes any numeric value and returns the same value as a string. You can index the string first to convert only part of the string. Converting between numbers and strings is done with the str2double and double2str functions: - str2double - Use str2double to convert any string to a physical numeric value. Understanding the difference between physical numeric values and numbers that appear in strings is crucial! For example, the number value 5 is not the same as the string '5'. ![]() Be careful of spaces! You can not simply make a for loop that counts by twos (d) Display the secret message as Decrypted message: XXX where XXX is the secret message Sample Output: Encryption Example: Message to encrypt: I DO NOT LIKE THE CONE OF SHAME! Encrypted message: 61 2366 326633 25612164 336364 65663264 6662 166344566453 Message to encrypt: IT'S RAINING TODAY! Encrypted message: 61334616 11446132613235 336623443153 Decryption Example: Message to decrypt: 3366 6132626132613331 443223 146431663223 Decrypted message: TO INFINITY AND BEYOND Message to decrypt: 336364 162131 6116 336364 2561566133 Decrypted message: THE SKY IS THE LIMIT Key Ideas To Consider. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |