Đang chuẩn bị liên kết để tải về tài liệu:
Engineering Matlab Problem Solving phần 7

Không đóng trình duyệt đến khi xuất hiện nút TẢI XUỐNG

For example: mean(data1) ans = 2.9940 sum(data1)/length(data1) ans = 2.9940 mean(data2) ans = 2.9768 median(data1) ans = 3.0285 median(data2) ans = 3.0574 These results can be confirmed by observing the plots of the data in Figure 7.1, in which the data values can be seen to be centered on 3.0. For the two data sets considered, the values of the mean and median are very close. This is not necessarily the case for other data sets. Also note that the results above show that mean(data1) = sum(data1)/length(data1). Measures of variation Measures of variation: indicate the degree of. | For example mean datal ans 2.9940 sum data1 length data1 ans 2.9940 mean data2 ans 2.9768 median data1 ans 3.0285 median data2 ans 3.0574 These results can be confirmed by observing the plots of the data in Figure 7.1 in which the data values can be seen to be centered on 3.0. For the two data sets considered the values of the mean and median are very close. This is not necessarily the case for other data sets. Also note that the results above show that mean data1 sum data1 length data1 . Measures of variation Measures of variation indicate the degree of deviation of random samples from the measure of central tendency. Referring again to the plots of our random data sets data1 and data2 in Figure 7.1 observe that data2 has greater variation from the mean. The sample standard deviation of vector x having N elements is s 1 1 N 1 2 1 Z x n -x 2 n 1 The sample variance s2 is the square of the standard deviation. std x Returns the sample standard deviation of the elements of the vector x. Returns a row vector of the sample standard deviations of the columns of matrix x. For example std data1 147 ans 0.5989 std data2 ans 0.9408 Thus the variation of data2 is greater than that of datal as we concluded from observation of the plotted data values. 7.4 Random Number Generation Many engineering problems require the use of random numbers in the development of a solution. In some cases the random numbers are used to develop a simulation of a complex problem. The simulation can be tested over and over to analyze the results with each test representing a repetition of the experiment. Random numbers also used to represent noise sequences such as those heard on a radio. Uniform Random Numbers Random numbers are characterized by their frequency distributions. Uniform random numbers have a constant or uniform distribution over their range between minimum and maximum values. The rand function in Matlab generates uniform random numbers distributed over the interval 0 1 . A state vector

Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.