A particular part is being turned on a lathe. The diameter of the part is supposed to be 20,000 mm. The diameter is measured every 10 minutes and the results are stored in a file called partdiam.dat. Create a data file to simulate this
belongs to book: MATLAB: A Practical Introduction to Programming and Problem Solving|Stormy Attaway|Fourth Edition| Chapter number:3| Question number:21.3
All Answers
total answers (1)
partdiam.dat
0 25233
10 23432
20 21085
30 20374
40 20002
Ch3Ex21.m
% Read from a data file the diameter of a part every 10
% minutes
% as it is turned on a lathe and plot this data
load partdiam.dat
mins = partdiam(:,1);
diams = partdiam(:,2);
plot(mins,diams,'k*')
xlabel('minutes')
ylabel('part diameter')
need an explanation for this answer? contact us directly to get an explanation for this answer