Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

the inputted experimental data is: 5.9500e+02 3.9864e-01 1.3310e+03 9.5809e-01 2.9840e+03 1.8931e+00 6.3800e+02 4.0443e-01 2.0280e+03 1.3234e+00 1.7070e+03 1.0525e+00 2.6740e+03 1.8474e+00 1.0790e+03 7.1056e-01 1.1760e+03 8.8241e-01 3.0000e+00 -5.0127e-02

image text in transcribed

the inputted experimental data is:

5.9500e+02 3.9864e-01 1.3310e+03 9.5809e-01 2.9840e+03 1.8931e+00 6.3800e+02 4.0443e-01 2.0280e+03 1.3234e+00 1.7070e+03 1.0525e+00 2.6740e+03 1.8474e+00 1.0790e+03 7.1056e-01 1.1760e+03 8.8241e-01 3.0000e+00 -5.0127e-02 1.2830e+03 7.6625e-01 1.6880e+03 1.0752e+00 1.8160e+03 1.1437e+00 1.0600e+02 -2.1956e-02 2.8200e+02 1.9843e-01 2.6020e+03 1.6441e+00 1.8350e+03 1.1867e+00 2.0000e+03 1.3020e+00 1.3520e+03 9.1835e-01 6.4000e+01 7.6411e-02 2.1640e+03 1.4078e+00 1.8100e+02 2.0748e-02 1.8080e+03 1.1234e+00 9.0400e+02 5.9988e-01 1.4010e+03 9.1112e-01 2.7240e+03 1.9083e+00 1.8730e+03 1.2737e+00 1.6320e+03 1.1259e+00 1.1990e+03 8.7400e-01 1.2170e+03 7.6286e-01 1.6440e+03 1.1822e+00 2.8570e+03 1.8545e+00 1.3500e+03 9.7469e-01 2.9620e+03 2.0327e+00 2.7260e+03 1.9078e+00 1.6270e+03 1.0112e+00 3.0000e+01 -2.9774e-02 2.6650e+03 1.7968e+00 1.4570e+03 1.0518e+00 1.5010e+03 1.0717e+00 2.4230e+03 1.7080e+00 1.9690e+03 1.3643e+00 2.6620e+03 1.8591e+00 5.2300e+02 3.8106e-01 6.1700e+02 4.4659e-01 1.3170e+03 8.7828e-01 6.3400e+02 3.2866e-01 1.4020e+03 9.2586e-01 1.0380e+03 6.5748e-01 1.7240e+03 1.2113e+00 2.3590e+03 1.6067e+00 3.3800e+02 1.3683e-01 2.3580e+03 1.6045e+00 2.6580e+03 1.6863e+00 6.1600e+02 4.1386e-01 2.8640e+03 1.8328e+00 2.1890e+03 1.3910e+00 1.6250e+03 1.0388e+00 2.3360e+03 1.6022e+00 7.7700e+02 5.2787e-01 2.6970e+03 1.7818e+00 5.5300e+02 3.5793e-01 3.7100e+02 1.6591e-01 1.3410e+03 9.2798e-01 2.9090e+03 1.9345e+00 2.4020e+03 1.5819e+00 1.6300e+02 1.4330e-01 1.5800e+03 1.1259e+00 2.0950e+03 1.3628e+00 1.7770e+03 1.2212e+00 1.7280e+03 1.2262e+00 1.6780e+03 1.1875e+00 2.3890e+03 1.5469e+00 9.8800e+02 6.0812e-01 2.0450e+03 1.4448e+00 9.7500e+02 6.3141e-01 1.3260e+03 8.9067e-01 1.6220e+03 1.1118e+00 1.4140e+03 9.2951e-01 1.3470e+03 9.8372e-01 1.3270e+03 8.3803e-01 2.2890e+03 1.6014e+00 1.5620e+03 1.1260e+00 1.4280e+03 9.7042e-01 2.5860e+03 1.6747e+00 2.1700e+03 1.3916e+00 1.3450e+03 8.9265e-01 7.2100e+02 5.4062e-01 2.4900e+02 1.2433e-01 2.6020e+03 1.7880e+00 2.6910e+03 1.8067e+00 9.5100e+02 6.7474e-01 1.4070e+03 8.5807e-01 1.0920e+03 6.6201e-01 3.5000e+01 2.9898e-02 6.2900e+02 3.9788e-01 5.0200e+02 2.8514e-01 8.2200e+02 6.3359e-01 2.8030e+03 1.7688e+00 5.6700e+02 3.8057e-01

needs to be done in octave.

The inputted experimental data are then stored in the (nx2) numerical array called data with Counts in the first column and Distance [m] in the second column. Create an Octave program named q04.m to complete the following tasks and show all figures in your report. a) Create a scatter plot of the data, label the axes, and save the plot to a file named scatter.png b) Determine the line of best fit (y = ax + b) using the polyfit function (polyfit(x,y,1)). c) Create a scatter plot of the data which includes the line of best fit, label the axes, add the slope of the line as text on the figure, and save the plot to a file named bestFit.png =

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions