Matlab  Fourth Edition: A Practical Introduction to Programming and Problem Solving
Matlab Fourth Edition: A Practical Introduction to Programming and Problem Solving
4th Edition
ISBN: 9780128045411
Author: ATTAWAY
Publisher: ELSEVIER
bartleby

Concept explainers

bartleby

Videos

Question
Book Icon
Chapter 14, Problem 14.1P
To determine

To find:

The minimum, maximum, arithmetic mean, variance, mode, median, harmonic mean and geometric mean for the vector [24838].

Expert Solution & Answer
Check Mark

Answer to Problem 14.1P

Solution:

The required answers are stated as follows.

Explanation of Solution

MATLAB Code:

vector = [2 4 8 3 8];

minimum = min(vector)

maximum = max(vector)

mean_value = mean(vector)

variance_value = var(vector)

mode_value = mode(vector)

median_value = median(vector)

harmonic_mean = harmmean(vector)

geometric_mean = geomean(vector)

Save the MATLAB files with name, chapter14_54793_14_1P.m in the current folder. Execute the file by typing the name at the command window to generate output.

Result:

The result is,

Matlab  Fourth Edition: A Practical Introduction to Programming and Problem Solving, Chapter 14, Problem 14.1P , additional homework tip  1

Matlab  Fourth Edition: A Practical Introduction to Programming and Problem Solving, Chapter 14, Problem 14.1P , additional homework tip  2

Therefore, the result is stated above.

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Students have asked these similar questions
In the following augmented matrices x is a real parameter and they are obtained in the process of verifying if a vector b belongs to V = Gen{a1, a2, a3}.Indicate in each case how one should answer with respect to the following categories: 1) For every value of x the vector b does not belong to V.2) There is only one value of x for which vector b does not belong to V.3) There is only one value of x for which vector b belongs to V.4) For every value of x the vector b belongs to V.
a production line is producing light bulbs. 90% of the bulbs are good and .10% are defective. Suppose each bulbls condition is dependent of the other bulbs condition Select three buls at randon: 1. P(all 3 are good)=? 2. P( 2 of 3 are good)= 3. P(1 of 3 are good)=
A tea company appoints four salesmen A, B, C and D and observes their sales in three months, April, May and June: Months Salesmen A B C D April May June 36 28 26 36 29 28 21 31 29 35 32 29 2 For the two –way analysis of variance model with one observation per cell, we write the observation from the th j group and th i block as ij i j ijY µ β τ ε = + + + (a) Explain each term in the above model in the context of the given information. (b) Consider the observation on agent B and house 1 ( ) 21 28Y = i. Estimate µ ii. Estimate and interpret 2 β
Knowledge Booster
Background pattern image
Statistics
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, statistics and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Text book image
Linear Algebra: A Modern Introduction
Algebra
ISBN:9781285463247
Author:David Poole
Publisher:Cengage Learning
Text book image
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:9781133382119
Author:Swokowski
Publisher:Cengage
The Shape of Data: Distributions: Crash Course Statistics #7; Author: CrashCourse;https://www.youtube.com/watch?v=bPFNxD3Yg6U;License: Standard YouTube License, CC-BY
Shape, Center, and Spread - Module 20.2 (Part 1); Author: Mrmathblog;https://www.youtube.com/watch?v=COaid7O_Gag;License: Standard YouTube License, CC-BY
Shape, Center and Spread; Author: Emily Murdock;https://www.youtube.com/watch?v=_YyW0DSCzpM;License: Standard Youtube License