Sorting and curve fitting in matlab, MATLAB Programming

Assignment Help:

Goal: Learn how to do statistics, sorting and curve fitting in Matlab. Put all of those ".m" files in a folder called yourname_lab7, and zip the folder and submit it on the class website.

Write a script called "yourname_lab7_1.m" that will do the following. Create two vectors with 20 random integers in each; in one the integers should range from 1 to 5, and in the other from 1 to 500. Would you expect the mean and median to be approximately the same? Would you expect the standard deviation of the two vectors to be approximately the same? Answer these questions in the comments of your program, and then use the built-in functions to find and print out the minimum, maximum, mean, median, standard deviation, and mode of each. Draw a histogram for each vector in a subplot. Run the script a few times to see the variations.

Sort DNA sequences

DNA is a double-stranded helical polymer that contains basic genetic information in the form of patterns of nucleotide bases. The patterns of the base molecules A, T, C, and G encode the genetic information.

From the course web page download the file "seq.txt", in which each line contains a short DNA sequence. In your script "yourname_lab7_2.m", Import the data into a cell array using the command
seqs = importdata('seq.txt');

1) Sort these sequences alphabetically.

2) Some DNA sequences are duplicated in the list. Find the most frequent sequence and the number of times it appears in the list. Output your answer nicely using the fprintf function.


Related Discussions:- Sorting and curve fitting in matlab

Scripts to produce and customize the simple plots, Scripts to Produce and C...

Scripts to Produce and Customize the Simple Plots: The MATLAB has many graphing capabilities. In most cases, customizing plots are desired and this is the simplest to accompli

Extraction, i want to extract an image from its background in matlab..the i...

i want to extract an image from its background in matlab..the image is a binary image

Kidney, MATLAB. • MATLAB Programming; • Simulation in MATLAB.

MATLAB. • MATLAB Programming; • Simulation in MATLAB.

First order differential equations, First order differential equations: Eul...

First order differential equations: Euler's method Finally, we consider ?nding the numerical solution for a ?rst order differential equation given an initial value. We consider

Illustration of built-in functions and help , Illustration of Built-in func...

Illustration of Built-in functions and help: To find out what a specific function does and how to call it, type help and then the name of function. Illustration: >> help si

Visual cryptography, how to implement visual cryptography on grayscale ima...

how to implement visual cryptography on grayscale images

Minimum cost problem - matlab linear optimization, Minimum Cost Pizza Probl...

Minimum Cost Pizza Problem. Using only the items given in the tables below, create a minimum cost pizza which satis?es both the nutritional requirements of Table 1 and bounds on it

Missing commands, hey ! why the command sawtooth and square does not exist ...

hey ! why the command sawtooth and square does not exist in Matlab R2012a?

Write Your Message!

Captcha
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