A scientific researcher has done an experiment, and lie has collected a set of d
ID: 3011846 • Letter: A
Question
A scientific researcher has done an experiment, and lie has collected a set of data shown in the Table 1. Based on the theory, he knows that y(x) should be a quadratic polynomial. But there is always error or uncertainty in measuring. Error can be due to a human error, or due to inherent limitations in the equipment being used to make measurements. a) This set of collected data has been provided as an attached file, called quest4.txt. It contains two columns of numbers, giving the x and y coordinates of the experimental data points, shown in Table, above. Write a program to load these data points, and then make a graph indicating each point as a circle (The figure might look like the graph above on the right side)Explanation / Answer
Here required matlab program will be written as :
load quest4.txt; \ loads the data file
[n,p]=size(quest4.txt) ; \ get the size of data matrix where n be total rows p be total columns
t=1;n ; \ creates a cycle i vector t having integers 1 to n
plot (t,count,g) ; \ plots the required scatter plot with green circles
end;
This is the required program.
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.