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

Plot conour lines on the axes space , The following four 4 equations are ne...

The following four 4 equations are needed to be plotted as CONTOUR lines on the axes space (C, T) where C is the horizontal axis, and T is the vertical axis. Contour lines for

Implement the physat algorithm in matlab, Your task is to implement the PHY...

Your task is to implement the PHYSAT algorithm in Matlab to classify the phytoplankton species in the data you have selected. An algorithm demonstrating one solution is provided be

Base o absorptoin system, plase help me to convert a theory part of ammonia...

plase help me to convert a theory part of ammonia-vapour simple absorption system into matlab programmong

Determine the probability - discrete distributions, The occurrence of bushf...

The occurrence of bushfires in the Port Stephens area may be modelled by a Poisson process. The average occurrences of bushfires n is assumed to be either 15 (event A 1 ), 20 (even

Generate a matlab error with a descriptive error message, Write a function ...

Write a function called threshold2 (in a file called 'threshold2.m'). The function takes an arbitrary number of input variables. The first input variable, t, is required and is the

Variable numbers of arguments, Variable numbers of arguments: In the f...

Variable numbers of arguments: In the functions there have been a fixed number of input and output arguments. For illustration, in the function below, there is one input argum

DEVANAGANRI CHARACTER RECOGNITIO, RECOGNIZER and TRANSLATOR: i want to rec...

RECOGNIZER and TRANSLATOR: i want to recognized devanagari word using matlab. I have done it using template matching. but i am not get devanagari word at the output. But get speci

Expand a matrix, Expand a matrix: To expand a matrix, an individual el...

Expand a matrix: To expand a matrix, an individual element could not be added as that would mean there would no longer be the similar number of values in every row. Though,

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