In a marble manufacturing plant, a quality control engineer randomly selects eight marbles from each of the two production lines and measures the diameter of each marble in millimeters. For the each data set here, determine the mean, median, mode,
belongs to book: MATLAB: A Practical Introduction to Programming and Problem Solving|Stormy Attaway|Fourth Edition| Chapter number:14| Question number:1.14
All Answers
total answers (1)
Ch14Ex1.m
% Determine which marble production line has better
% quality
load marbles.dat
proda = marbles(1,:);
prodb = marbles(2,:);
fprintf('For production line A, the mean is %.2f,\n', mean(proda))
fprintf('the median is %.2f, the mode is %.2f,\n', ...
median(proda), mode(proda))
fprintf(' and the standard deviation is %.2f\n', std(proda))
fprintf('For production line B, the mean is %.2f,\n', mean(prodb))
fprintf('the median is %.2f, the mode is %.2f,\n', ...
median(prodb), mode(prodb))
fprintf(' and the standard deviation is %.2f\n', std(prodb))
Production line B seems better.
need an explanation for this answer? contact us directly to get an explanation for this answer