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](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f4e53c55fd7_50066f4e53c094ee.jpg)
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
Get step-by-step solutions from verified subject matter experts
