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...

  • 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...

  • 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....

  • 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...

  • I need to develop the 7 functions below into the main program that's given on top...

    I need to develop the 7 functions below into the main program that's given on top Write a C program to create array, with random numbers and perform operations show below. Il Project 3 (53-20). 1 Projects CS5,00 This file contains the function Programcution Dagine and one include <timo // Defining some constants definer_SIZE 20 define LOVE LIMIT 1 eine UPR UNIT define TALSE eine Tut 1 wold randomizery (int[], int, Int, int) wold pinay in. St, Int); En find...

  • ALL WORK DONE IN EXCEL, SHOW SCREENSHOT. MATLAB!! BELOW IS SOAP BOX 1 100.2738 2 101.6089...

    ALL WORK DONE IN EXCEL, SHOW SCREENSHOT. MATLAB!! BELOW IS SOAP BOX 1 100.2738 2 101.6089 3 97.3934 4 100.608 5 100.0483 6 98.3731 7 99.2734 8 100.0729 9 103.4057 10 102.5725 11 98.3296 12 102.846 13 100.4672 14 99.6551 15 100.4562 16 99.5089 17 99.5921 18 101.2544 19 101.1713 20 101.1797 21 100.4116 22 98.4763 23 100.4588 24 101.3991 25 100.2236 26 100.7857 27 100.4687 28 99.4075 29 100.0227 30 98.9091 31 100.635 32 98.5385 33 98.6191 34 98.8862...

  • Use C++ (2D Array) Write a program which: 1. Assigns data given below into the 2D...

    Use C++ (2D Array) Write a program which: 1. Assigns data given below into the 2D array of integers which is 10x10. 2. Prints out the contents of the 2D array after assigning the data to make sure correct data was assigned. 3. Figures out and prints out the square root of the sum of ALL the elements in the 2D array. 4. Figures out and prints out the average of ALL THE ELEMENTS in the 2D array. 5. Figures...

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
ADVERTISEMENT