Write a function mystats

Assignment Help Basic Computer Science
Reference no: EM131457673

Consider a set of N numbers, myArray, (represented as a row vector) which is not ordered. Write a function myStats which takes myArray and an integer k such that 1=k=N and returns the kth largest and kth smallest element in myArray. Your function should ensure the function is called with valid number of arguments and the validity of the arguments itself. Also note that, you cannot use any built-in functions to order the elements within myArray. You should write your own code to order the data, if necessary.Write a script helpMyStats.m which reads all the elements of myArray and the value k from the user and displays the result by calling myStats function with the appropriate input data.

Reference no: EM131457673

Questions Cloud

Well-formed formula in prefix notation : Well-formed formulae in prefix notation over a set of symbols and a set of binary operators are defined recursively by these rules:
Conduct academic research using the librarys databases : Conduct academic research using the library's databases, like Business Source Complete via EBSCO and Business via ProQuest, as well as reliable webpages.
Statistics help in business decision-making : Comment on the statement bringing out clearly how does statistics help in business decision-making.
Develop implement and evaluate an operational plan : BSBMGT517 Manage operational plan Assessment Project. The purpose of this plan will be to improve operational efficiency in the workplace
Write a function mystats : Consider a set of N numbers, myArray, (represented as a row vector) which is not ordered.
Distinguish between a corporate and a marketing web site : Distinguish between a corporate Web site and a marketing Web site. Virtually all businesses have Web sites. Generally, these sites can be classifi ed.
Determining the horner method : Using the big-Oh notation, characterize the number of arithmetic operations this method executes.
Prepare a coherent summary of lecturers most important idea : Notes must be a carefully written, coherent summary of the lecturer's most important idea(s). You include your own questions as part of your notes.
Is the intruder liable for what he has done : Do you have ethical responsibilities to Sharon and Darryl? Explain. If there are ethical responsibilities, what are they?What should you do to prevent ?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Matlab includes functions upper and lower

Matlab includes functions upper and lower which shift a string from upper case to lower case respectively. create a  new function called caps.m which capitalizes the first letter in each word and forces all other letters to be lowercase. the function..

  Ports on the same network

1) Suppose a bridge has two of its ports on the same network. How might the bridge detect and correct this? 2) Having ARP table entries time out after 10 to 15 minutes is an attempt at a reasonable compromise. Describe the problems that can occur i..

  How would you recommend addressing dave’s backup concerns

Research 802.11n wireless routers at sites such as netgear.com, linksys.com, and dlink.com. What router do you think will meet the roommates' needs? Why?

  What is the maximum amplitude of the resulting displacement

The right end of a 6-m-long wire, which is stretched until the wave speed is 60 m/s, is continually moved with the displacement 0.5 cos 4πt. What is the maximum amplitude of the resulting displacement?

  Why is it significant to project planning

Why is it a good practice to delay naming specific individuals as resources early in the planning process?

  Disk management snap-in to initialize new disks

What advantage is there to using the Disk Management snap-in to initialize new disks, rather than Server Manager?

  Modify the data structures for multiple-mode locks

Modify the data structures for multiple-mode locks and the algorithms for read_lock(X), write_lock(X), and unlock(X) so that upgrading and downgrading of locks are possible.

  Write out that induction proof explicitly

Write out that induction proof explicitly, and also show explicitly how the invariant implies that the greedy satis?ability algorithm is correct.

  How would you go about fulfilling this responsibility

As a second-year teacher at a lowly rated inner-city elementary school, you have been asked to form and lead a three-person committee to define and obtain funding for an Ed-Tech program for your school. How would you go about fulfilling this respo..

  What are the advantages of using an rnc over a ram

For your platform, language, and cryptography library of choice, summarize how the cryptographic PRNC works internally. Consider issues including but not limited to the following: how the entropy is collected, how reseeding occurs, and how the ram..

  Theoretical concepts of change management

Based on the information provided as well as theoretical concepts of change management, choose three (3) functions that Jobs performs as a leader, and discuss how they attribute to the success of the company.

  Create a bcg matrix for jetblue airways

Create a BCG Matrix for JetBlue Airways. Recommend speci?c strategies and long-term objectives. Show how much your recommendations will cost. Clearly itemize these costs for each projected year. Compare your recommendations to actual strategies pl..

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