Start Discovering Solved Questions and Your Course Assignments
TextBooks Included
Active Tutors
Asked Questions
Answered Questions
function imreadthe function imread can read an image file for illustration a jpeg jpg file the function reads color images into a 3-dimensional
built-in colormapsthe matlab has numerous built-in colormaps which are named the reference page on colormap shows them calling the function colormap
image processingthe images are represented as grids or matrices of picture elements known as pixels in matlab an image usually is represented as a
core objectsthe core objects in matlab are the very fundamental graphics primitives the description can be found under the matlab help under the
function used in sound filesthe matlab has numerous other functions which let you read and play sound or audio files in the audio files sampled data
sound filesthe sound signal is an illustration of a continuous signal which is sampled to result in a discrete signal in this situation sound waves
binary searchthe binary search supposes that the vector has been sorted first the algorithm is just similar to the way it works whenever looking for
index vectorthe index vector is then used as the indices for original vector to get grades vector in ascending order the indices used would be grades
example of sorting stringsto sort a cell array of strings also the sort function is used the illustration is as followsgtgt engcellnames
function sortrows - sorting stringsthe function sortrows sorts each and every row as a block or group and it also will work on numbers here in this
illustration of sorting stringsto sort on the rows rather than second dimension should be specifiedgtgt sortwords2ans hellohdowyhigbdeooycaioit can
sorting stringsfor the matrix of strings the sort function works exactly as formerly for numbers for illustrationgtgt words charhi hello howdy
function issorted - set operationsthe function issorted will return 1 for logical true when the argument is sorted in ascending order minimum to
intersect function and setdiff functionthe intersect function rather than returns all the values which can be found in both of the input argument
illustration of set operationsfor illustration given the vectors as shown belowgtgt v1 26v1 2 3 4 5 6gtgt v2 127v2 1 3
set operationsthe matlab has numerous built-in functions which perform set operations on vectors these involve intersect union setdiff unique and
illustration of medianwhen the vector is not in sorted order to start with the median function will still return the right answer it will sort the
example of medianfor the vector 1 4 5 9 12 33 the median is the average of the 5 amp 9 in the middlegtgt median1 4 5 9 12 33ans
medianthe median is defined only for a data set which has been sorted first that means that the values are in order the median of a sorted set of
example of modewhen no value appears more often than any other the smallest value in the vector will be the mode of the vectorgtgt shortx 2 5 1
illustration of modewhen there is more than one value with similar highest frequency then the smaller value is mode in the case below as 3 and 8
modethe mode of a data set is the value which appears most often the built-in function in a matlab for this is known as the modegtgt x 9 10 10 9 8 7
illustration of standard deviationthe less spread out the numbers are therefore smaller the standard deviation will be as it is a way of determining
illustration of variancefor illustration for the vector 4 6 1 5 there are n 4 values therefore n - 1 is 3 the mean of this data set is also 4 the
find minimum and maximum for each rowto find the maximum or minimum for each row the dimension of 2 that is how a matlab refers to rows can be