Question: Write a function [Q1, Q2, Q3] = myQuartiles (vec), which will sort the input vector (using Matlab's sort function) and return the 1t, 2d, and

 Write a function [Q1, Q2, Q3] = myQuartiles (vec), which will

Write a function [Q1, Q2, Q3] = myQuartiles (vec), which will sort the input vector (using Matlab's sort function) and return the 1t, 2d, and 3ed quartiles of the values in vec using Method 3 n https://en.wikipedia.org/wiki Quartile. Your function can use myMedian from Question 2, if it works, or built- in Matlab function median, but no other built-in function (except sort, length, and mod). Test your function on Example 1 from this site

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!