Question

1. Below you will find a table with hours of life of a cupper plate used in an industrial process. They are 45 data samples (they are just an array, but in this document, they are presented in three columns to save space) 63 59 75 78 70 64 75 93 90 70 98 92 85 90 83 95 89 92 92 90 82 81 89 80 79 46 85 79 59 79 96 49 69 98 65 Input the data as a vector or array a) By using array functions, implement a nice user interface (nice output comments and text in the command window) that provides results for i. Display the array positions where the hours of life is less than 50 ii Display the array values that are less than 50 ii. Display the array positions where the hours of life is greater than 90 iv. Display the array values that are greater than 90 v. Display how many elements are less than 50?, and how many are more than 90? b) Plot the data in an x-y chart, green line and using circles as a mark point. i. Label the axes and add a title to your graph. ii. Place a text in the minimum (MIN) and maximum (MAX) value

Using Matlab, only need part b to be done thank you.

0 0
Add a comment Improve this question Transcribed image text
Answer #1
Matlab Code

close all

% creating the array
lifeHours = [63,66,78,70,64,75,66,82,81,63,46,85,77,59,79, ...
59,75,79,85,94,90,83,88,89,80,79,79,99,96,49, ...
93,90,70,98,92,88,95,89,92,92,90,88,69,98,65];

% Part b
plot(lifeHours, '-go', 'LineWidth', 1.3)
title('Copper Plate Life Hours'' Plot')
xlabel('Data Samples ->')
ylabel('Hours of Life ->')
% finding the minimum life hour
min_val = min(lifeHours);
% finding the respective x position in life hour array
x1 = find(lifeHours == min_val);
% finding the maximum life hour
max_val = max(lifeHours);
% getting the respective x position
x2 = find(lifeHours == max_val);
% preparing the text for minimum hour
min_text = ['\leftarrow Least Life Hours = ', num2str(min_val)];
% preparing the text for max hour
max_text = ['\rightarrow Max Life Hours = ', num2str(max_val)];
% putting the text
text(x1, min_val, min_text)
text(x2, max_val, max_text)

OUTPUT

Copper Plate Life Hours Plot 100 Max Life Hours = 99 90 80 70 50 Least Life Hours-46 40 10 15 20 25 30 35 45 Data Samples->

Add a comment
Know the answer?
Add Answer to:
Using Matlab, only need part b to be done thank you. 1. Below you will find...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Consider the below matrixA, which you can copy and paste directly into Matlab.

    Problem #1: Consider the below matrix A, which you can copy and paste directly into Matlab. The matrix contains 3 columns. The first column consists of Test #1 marks, the second column is Test # 2 marks, and the third column is final exam marks for a large linear algebra course. Each row represents a particular student.A = [36 45 75 81 59 73 77 73 73 65 72 78 65 55 83 73 57 78 84 31 60 83...

  • Write a program that uses the keys(), values(), and/or items() dict methods to find statistics about...

    Write a program that uses the keys(), values(), and/or items() dict methods to find statistics about the student grades dictionary. Find the following: Print the name and grade percentage of the student with the highest total of points. Also print the grade as per the below grading scale 90 to 100         A 80 to 89           B 70 to 79           C 60 to 69           D Below 60         F Find the average score of each assignment. Use the following data:...

  • Question 9-15 are based on the random sample below which is obtained to test the following hypoth...

    Question 9-15 are based on the random sample below which is obtained to test the following hypothesis about the population mean. Test the hypothesis that the mean is less than 80. 80 100 81 93 80 57 98 90 71 56 58 78 59 55 55 77 72 78 56 94 98 59 93 86 89 62 60 66 59 71 96 97 94 69 64 77 87 77 64 90 90 95 98 99 56 69 72 81 95...

  • Write a C program to assign natural numbers 1 to 100 into a one-dimensional integer array....

    Write a C program to assign natural numbers 1 to 100 into a one-dimensional integer array. Display all the values in the array on the screen. For each number in the array, determine if the number contains digit 7 or is divisible by 7. Display all those numbers on the screen. Original array: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27...

  • 1. Forecast demand for Year 4. a. Explain what technique you utilized to forecast your demand....

    1. Forecast demand for Year 4. a. Explain what technique you utilized to forecast your demand. b. Explain why you chose this technique over others. Year 3 Year 1 Year 2 Actual Actual Actual Forecast Forecast Forecast Demand Demand Demand Week 1 52 57 63 55 66 77 Week 2 49 58 68 69 75 65 Week 3 47 50 58 65 80 74 Week 4 60 53 58 55 78 67 57 Week 5 49 57 64 76 77...

  • PLEASE SHOW ME HOW TO DO THIS.... For the Excel Data Set please find and report...

    PLEASE SHOW ME HOW TO DO THIS.... For the Excel Data Set please find and report for Test 1 and Test 2 the Mean, SD, and the tolerance levels for both for which there would be any outliers (i.e., the value for which a score must be less than to be consider an outlier and the value for which a number must greater than to be considered an outlier. See picture Performance Data Group 1 1 1 1 Test 2...

  • I need it in JAVA Write a program that randomly populates an array of size 100,...

    I need it in JAVA Write a program that randomly populates an array of size 100, sorts it, and then finds the median. The random numbers must be from 0-99 and all integer values. Also since there is an even set of numbers the median is found by taking the mean of the two middle numbers (In other words the 50th and 51st). You have to code your own sorting method. You may not use a built in java sorter....

  • The following are the IQ scores of 60 students from a university. The histogram of the...

    The following are the IQ scores of 60 students from a university. The histogram of the data is symmetric. 79 79 81 82 82 84 84 84 85 85 86 86 87 89 89 89 90 90 90 91 91 92 92 93 94 95 95 96 98 99 99 102 102 102 103 104 104 104 105 106 106 106 108 109 109 110 111 111 113 113 113 115 117 117 120 121 123 124 125 130 a....

  • 1. On the following page are the exam scores on the first Statistics test for all...

    1. On the following page are the exam scores on the first Statistics test for all my classes. Using everything we covered in the first three chapters of our textbook, describe the data. I recommend going through your notes and textbook, chapter by chapter. Include as much as you can – type of data, frequency distribution, histogram, numerical methods, etc. The standard deviation for the data is 16.7. Exam Scores on the First Statistics Test 100 88 100 86 100...

  • I need answer on number 7 please 5. Students in a statistics class took their first...

    I need answer on number 7 please 5. Students in a statistics class took their first test. The following table lists the scores they earned. 67 67 76 47 85 70 87 76 67 72 84 98 84 64 65 82 81 81 88 74 87 83 Complete the following frequency distribution table using 6 classes: 40-49, 50-59, 60-69, 70-79, 80-89, and 90-99. Scores Tally Frequency Relative Frequency Cumulative Relative Frequency 40 - 49 50 - 59 60 - 69...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT