×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Are you an
Engineering professional?
Join Eng-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

#### Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

# Help with 2 programs matlab

## Help with 2 programs matlab

(OP)
Hello, I dont know how to start to program the two programs I will explain below, If someone can help me I will be gratefull.

the first one is:
Design a script that draw two concentric ellipses, the common center of origin and semiaxes a = 2,
b = 6 (foreign ellipse) and a = 1, b = 3 (inner ellipse). Once drawn ellipses, the program
You must issue a message saying: Press any key to start the movement, and stop up
you press a letter (using the pause command). Pressing a key should be both ellipses
Moving to become approximately concentric ellipses respective axle shafts
a = 8, b = 2 (outer ellipse) and a = 4, B = 1 (inner ellipse). Perform the movement with a
loop 100 steps.

and the second one is:

Z assembly 26 of the integers modulo 26 is formed by the numbers 0 to 25 (which are
all possible remaining integer division by 26). If we define a sum of the form
a + b = mod (a + b, 26) and a product a · b = mod (a · b, 26), can encrypt text messages
breaking them down into blocks of 3 consecutive letters abc and transform this array (vector)
X = (a, b, c) in another array Y = (α, β, γ) by a linear transformation Y = AX, being
To a 3 × 3 matrix with coefficients in Z26. The matrix is ​​selected so that it is autoinversa,
that is, such that A2 = I and such that det A is prime with 26. Since double ('a') gives
97 response to assign the letter 'a'el value 0 to do a = double (' a ') - 97. This
Similarly, the letter 'z' (not considered the double 'l' as a new and did not include the letter 'n')
It corresponds to the number 25.
(A) Write a script, called encode.m ask you a text message in lower case (without
accents, spaces or punctuation marks) and encrypt the message (extended with letters 'a' to
that is 3 * n letters) using the matrix
A =
20 9 0
25 6 0
0 0 25

(B) Encrypt the message: 'What good is spoiled, wanting to improve' and decrypt the message
(Extended): 'gnwivtgehvoaeewrtwkrjxkyrkachnsvobqwrsaybymnjesa'.

#### Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

#### Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

#### Resources

Low-Volume Rapid Injection Molding With 3D Printed Molds
Learn methods and guidelines for using stereolithography (SLA) 3D printed molds in the injection molding process to lower costs and lead time. Discover how this hybrid manufacturing process enables on-demand mold fabrication to quickly produce small batches of thermoplastic parts. Download Now
Examine how the principles of DfAM upend many of the long-standing rules around manufacturability - allowing engineers and designers to place a partâ€™s function at the center of their design considerations. Download Now
Taking Control of Engineering Documents
This ebook covers tips for creating and managing workflows, security best practices and protection of intellectual property, Cloud vs. on-premise software solutions, CAD file management, compliance, and more. Download Now

Close Box

# Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!