Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For each of the problems in this lab assignment, write a separate MATLAB m-file. The name of each m-file must be exactly as specified in

image text in transcribed
For each of the problems in this lab assignment, write a separate MATLAB m-file. The name of each m-file must be exactly as specified in the corresponding problem statement. Submit your m files by uploading to Blackboard before the due date. A p-file (an encrypted script file) for problem 2 is available on the Lab page of the course website. You can download this file and run it from the command line to see how your code should behave. Make the behavior of your code match that of the p-file. 1. Filename: MAE1090_Lab 7_1 middot m Write an m-file to add two 30-digit numbers and print the results. This is not as easy as it might sound at first because integer types may not be able to store a value this large. One way to handle large integers is to store them in vectors, where each element in the vector stores a digit of the integer. Your script should initialize two 30-digit integers, storing each in a vector, and then add these integers, also storing the result in a vector. Create the original numbers using the built in function randi middot m. 2. Filename: MAE1090_Lab 7_1 middot m Amino acids are the fundamental compounds that make up proteins. Viruses, such as influenza and HIV, have genomes which code for proteins that have pathogenic results. Human bodies recognize foreign proteins by binding them to other molecules so that they can be recognized and killed. Write an m-file. That determines whether an amino acid is going to bind to a certain molecule. It is known that the first region (1 - 5) of the molecule bonds strongly to amino acids A, C, I, L, Y, and E, and weakly to W, S, M, G, and K. It is also know that the second region (6 - 10) binds strongly to H, D, W, K, L, and A, and weakly to I, E, P, C, and T. Your m-file should prompt the user for two things: the region number and a character for the amino acid. The script should then determine whether the amino acid and the molecule results in a "strong" or "weak" binding

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Server Query Performance Tuning

Authors: Sajal Dam, Grant Fritchey

4th Edition

1430267429, 9781430267423

More Books

Students also viewed these Databases questions