[outputArg1,outputArg2] = untitled4(inputArg1, inputArg2) 4 Summary of this function goes here led explanation goes here 1 = inputArg1; 2 inputArg2; YOur function

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Write a function called manualMedian that accepts an vector of numeric values and returns the median of that vector. The function cannot use the built-in median function. If
the vector is empty, the function should return the error string "Empty vectors have no median value."
Function e
C Reset
I MATLAB Documentation
1 function [outputArg1, outputArg2] = untitled4(inputArg1, inputArg2)
2 %UNTITLED4 Summary of this function goes here
3 %
Detailed explanation goes here
4 outputArg1 = inputArg1;
5 outputArg2 = inputArg2;
6 end
Code to call your function e
C Reset
1 testVec1=[27
16
26
31
24
26
12
34
18
26
34
11
17
23
18
4
30
18
2
40
2 testVec2=[25.6367
12.1810
33.0248
35.3475
37.8149
15.6318
32.0528
6.2845
25.0066
27.9594
3.4348
21.2472
35
3 testVec3=[17
-8
12
8
-14
8
-14
18
16
1
20
-14
11
14
12
-12
-2
-19
-6
4 testVec4=[1.3015
17.0282
15.9633
1.7933
16.0450 -17.9269
12.3441
-6.6038 -10.8527
12.8961
-6.0706 -13.3812
-18.
5 testVec5=[];
MATLAB Editor to write code to run your
solution. To change focus out of the editor, press
the Escape Key. Then press Tab to move to the
next field, Shift-Tab to move to the previous
field, or Enter to return to the MATLAB Editor.
6.
7 output1=manualMedian (testVec1);
8
output2=manualMedian(testVec2);
9 output3=manualMedian (testVec3);
10 output4=manualMedian(testVec4);
11 output5=manua lMedian (testVec5);
Transcribed Image Text:Write a function called manualMedian that accepts an vector of numeric values and returns the median of that vector. The function cannot use the built-in median function. If the vector is empty, the function should return the error string "Empty vectors have no median value." Function e C Reset I MATLAB Documentation 1 function [outputArg1, outputArg2] = untitled4(inputArg1, inputArg2) 2 %UNTITLED4 Summary of this function goes here 3 % Detailed explanation goes here 4 outputArg1 = inputArg1; 5 outputArg2 = inputArg2; 6 end Code to call your function e C Reset 1 testVec1=[27 16 26 31 24 26 12 34 18 26 34 11 17 23 18 4 30 18 2 40 2 testVec2=[25.6367 12.1810 33.0248 35.3475 37.8149 15.6318 32.0528 6.2845 25.0066 27.9594 3.4348 21.2472 35 3 testVec3=[17 -8 12 8 -14 8 -14 18 16 1 20 -14 11 14 12 -12 -2 -19 -6 4 testVec4=[1.3015 17.0282 15.9633 1.7933 16.0450 -17.9269 12.3441 -6.6038 -10.8527 12.8961 -6.0706 -13.3812 -18. 5 testVec5=[]; MATLAB Editor to write code to run your solution. To change focus out of the editor, press the Escape Key. Then press Tab to move to the next field, Shift-Tab to move to the previous field, or Enter to return to the MATLAB Editor. 6. 7 output1=manualMedian (testVec1); 8 output2=manualMedian(testVec2); 9 output3=manualMedian (testVec3); 10 output4=manualMedian(testVec4); 11 output5=manua lMedian (testVec5);
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY