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

Math+Matlab, Read the document and quote me ... https://www.dropbox.com/s...

Read the document and quote me ... https://www.dropbox.com/s/pvq4f45fpwajibi/Course_wk%20_2013_.pdf

Illustration of modifying elements, Illustration of Modifying Elements: ...

Illustration of Modifying Elements: Illustration, the fifth element in the vector newvec is 9 >> newvec(5) ans = 9 The subset of a vector, that would be a vector it

Mass and stiffness matrices, Model the three degree of freedom system shown...

Model the three degree of freedom system shown in Figure Q5 and solve for the displacements of the three masses due to a force of 10 N applied to the bottom mass at a frequency of

Transportation problem, I want codding in matlab for vogel approximation me...

I want codding in matlab for vogel approximation method . i mean .M file for vogels approximation method.

Enciphering by a shift method, Hello! How to cipher on Matlab the message c...

Hello! How to cipher on Matlab the message consisting eight symbols. At first the message shares on blocks. Then in each of blocks shift of symbols is carried out. The initial text

Statistical analysis, please tell me the procedure of Anova two Way analysi...

please tell me the procedure of Anova two Way analysis in matlab?

Matrix, if i have a 3x2 double.. how can i run a for loop for this matrix s...

if i have a 3x2 double.. how can i run a for loop for this matrix so tht it can subtracted values of he adjacent neighbors?

Determine the equation for the steady state output, A filter described by t...

A filter described by the equation:    y(n) = x(n) + x(n-1) + 0.9 y(n-1) - 0.81 y(n-2) (a) Find the transfer function H(z) for the filter and find the poles and zeros of the fil

Calculate the bandwidth of this filter matlab, The purpose of this lab is ...

The purpose of this lab is to enhance the ECE311 student's understanding of filter behavior and filter design and to provide the student the opportunity to demonstrate skills in li

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