You are given the data set below. Perform the following actions: Create the nece
ID: 1855730 • Letter: Y
Question
You are given the data set below. Perform the following actions: Create the necessary vectors in Matlab for the Temperature and Resistance. Generate a plot of the data. Place a horizontal label on the graph stating "Celsius C". Place a vertical label stating "Ohms's". Place a title on your graph above the plot. Make the title state "Resistance of Copper Wire versus Temperature". Compute the average slope of the data set.Explanation / Answer
The following is the MATLAB code for generating a plot of the above data >> res = [-2.9328;-1.0464;0.84;2.7264;4.6128;6.4992;8.3856;10.272;12.1584;14.0448;15.9312;17.8176]; >> tem = [-250;-240;-230;-220;-210;-200;-190;-180;-170;-160;-150;-140]; >> plot(tem,res) >> xlabel('Celsius C') >> ylabel('Ohms') >> title ('Resistance of Copper Wire versus Temperature') >> param = polyfit(tem,res,1); >> avg_slope = param(1) This will generate a plot of the data in a new window and the value of the average slope will be stored in avg_slope variable.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.