Q:

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

0

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. The file will store the time in minutes and the diameter at each time. Plot the data.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

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

total answers (1)

Similar questions


need a help?


find thousands of online teachers now