Write a separate matlab m-file

Assignment Help MATLAB Programming
Reference no: EM132106188

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.

Reference no: EM132106188

Questions Cloud

Calculate the surface area of a cylinder using pseudocode : Write pseudocode for a program that calculates the surface area of a cylinder.
Write a function geometric that takes a list of integers : Write a function geometric ()that takes a list of integers as inputs and returns true if the integers in the list form a geometric sequence.
Create a series of sinusoids : Create a series of sinusoids. Create a 10 second time axis, sampling every 0.0001 seconds (Fs=10000 Hz).
How does this abstraction help you deal with the complexity : What procedures in your daily routine, say getting up and leaving for work, can you think of in terms of a function?
Write a separate matlab m-file : Write a separate MATLAB m-file. The name of each m-file must be exactly as specified in the corresponding problem statement.
What is the present value of a single cash flow : What is the present value of a single cash flow of $25,000received at the end of 10years if we assume a discount rate of 5% annually
Write the recurrence equation and initial conditions : Write the recurrence equation and initial conditions that expresses the execution time cost for the sift function in the above algorithm.
How much cash interest will be paid every six months : Youngblood Enterprises plans to issue $750,000 face value bonds with a stated interest rate of 10%. How much cash interest will be paid every six months
What is the total interest expense over the life of bonds : Stacy Company issued five-year, 10% bonds with a face value of $10,000 on January 1, 2014. What is the total interest expense over the life of bonds

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Finite difference method

Use the finite difference method to calculate the temperature at the point specified since it is easier.

  Determine the necessary shell temperature

In a shell-and-tube heat exchanger, one fluid passes through a central tube while another fluid flows through an outer shell in the opposite direction. The purpose is to heat the fluid passing through the central tube.

  Find the integral of a function at an arbitrary location

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule

  Compute the speed of single-stage planetary gear train

Write a MATLAB function [speed] = planetary (N, emesh, first, last, arm) that computes the speed of a given link in a single-stage planetary gear train.

  Calculate and plot the error in the numerical derivative

Write a program to calculate and plot the error in the numerical estimate of the derivative.

  Create the graph using matlab functions

Create the graph, which contains a piecewise function where a line exists in the first interval, a parabola in the second interval, and the sine function in the third interval.

  Develop a simulation program

Develop a simulation program

  Create a vector in matlab

Create a three dimensional diagram of function.

  Open a named pipe and to read data from the pipe

Open a named pipe and to read data from the pipe in matlab

  Write the commands that will create the matrix

Write the commands that will create the matrix.

  Lagrange interpolating polynomial of degree

Lagrange interpolating polynomial of degree

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd