tailieunhanh - Engineering and Scientific Computations Using MATLAB phần 7

Đường viền (đường cong cấp) theo đường đồng mức âm mưu tính toán đầy đường viền lưới ẩn âm mưu loại bỏ dòng chế độ kết hợp lưới 1 / contoumlot lưới 3D với mặt phẳng tham chiếu Một chức năng mẫu | Chapter 4 MATLAB Graphics 127 Example . The experimental data of tension in a steel bar is given by Table . Plot the two sets of experimental data with elongation as the independent variable and the tension as the independent variable. Connect the data points point-to-point with line segments. Label the curves with either text or gtext. Table . Experimental Data to be Plotted Elongation inches xio 3 Increasing Tension Force lbs Decreasing Tension Force lbs 0 0 0 1 1 000 0 2 1 700 1 500 3 3 300 2 200 4 4 500 3 600 5 7 000 5 900 6 10 400 8 700 7 12 100 11 400 8 13 300 12 900 9 14 100 13 300 10 14 700 14 700 Solution. The MATLAB file written to solve the problem is documented below This program creates the graph based upon the tension test for a steel bar The plot includes two lines for increasing and decreasing tension forces Vectors for elongation E tension force increasing Ti tension E- 0 10 Ti- 0 1000 1700 3300 4500 7000 10400 12100 13300 14100 14700 Td- 0 0 1500 2200 3600 5900 8700 11400 12900 13300 14700 Plot E versus Ti with a line and plot E versus Ti with a line -O-O-p ot E Ti Td -o Label the plot line gtext Increasing tension force gtext Decreasing tension force Increment X- and y-axis x- 0 10 y- 0 1000 15000 Label X- and y-axls xlabel Tension Force lbs ylabel Elongation inches 10 3 Title the graph title Tension of steel Bars Add a grid to the graph grid on The resulting plot is illustrated in Figure . Chapter 4 Matlab Graphics 128 Tension of Steel Bars 15000 Increasing tension force 10000 5000 Tension Force lbs Figure . Tension in the steel bar Decreasing tension force. Example . The height h t and horizontal distance x t traveled by a ball thrown at an angle A with a speed V are given by the following equations h t v sin A-ịgt2 and x Z vfcosJ. The acceleration due to gravity is g m sec2. Solve the following problems. a. Suppose the ball is thrown with the velocity V 10 m sec at an angle 35 . Compute how height of the ball will

TỪ KHÓA LIÊN QUAN