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

  Write a matlab program using while loop

Write a Matlab program using WHILE loop that computes the sum of the elements of an array Load the lab.

  Evaluate the exponential when x is negative

Test your program for x = 10, 2, -2, and -10. From the plots, explain why this is not a good way to evaluate 9 when x

  Write a matlab script that draws the function

Solve numerically the advection equation using the central difference method. Choose appropriate boundary conditions so that the wave is entering on the left side (west side) and is coming out on the right side (east side). Show on the same graph ..

  What are corresponding displacement field and strain field

Write a short Matlab (or whatever language you prefer) program to perform 2 point Gauss integration of a function f over a given interval (a, b). Inputs: a, b, and the functional values of f at the two Gauss points x1 and x2, f 1) and f (x2). (The..

  Determine the inputs, outputs, relevant formulas

determine the inputs, outputs, relevant formulas

  Plot fitted polynomial and all data points

Plot fitted polynomial and all data points (using linear-linear axes) as a fourth subplot in the same window (as shown below). Use intervals of 0.1.

  Write a matlab script that solve system of linear equations

Write a Matlab script that will solve the system of linear equations shown below. This can be done by solving for the vector of unknowns (X) in the equation AX=B where A is the coefficient matrix and B is the vector on the right-hand side.

  Coefficients of the least squares fit

Write a Sa/Mkrus function that takes as its input the data and plots the data points and the least squares linear fit to the data. The function should also return the coefficients of the least squares fit.

  Write a function in matlab that lets the user define matrix

You need to write a function in matlab that lets the user define two matrices of any size, then multiplies those matrices without using the built-in matrix.

  Convert each numeric value in the vector days

Write a function dayName that has one input argument, day, containing the numerical value of a day in the month of November, 2014.

  Blood declines due to metabolic processes

Find an expression for the half-life in terms of k, and obtain a plot of the half-life versus k for the indicated range.

  Describe the two graphs ber vs snr relationship

Plot BER vs SNR curves for both BPSK and QPSK in the same Matlab figure - Describe the two graphs BER vs SNR relationship for BPSK and QPSK.

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