A test rig records force at nonuniform time intervals. The following MATLAB commands produce the graph shown:
t = [0 2 5]; % seconds F = [4 16 10]; % newtons plot(t,F,'-o') xlabel('Time (s)') ylabel('Force (N)')
What force value lies on the displayed connecting segment at t=3.0 st=3.0\ \text{s}t=3.0 s? Give your answer in newtons, to one decimal place. Determine the value on the drawn segment, rather than assuming an additional physical measurement.
Unlock full course notes by signing up
Set physical margins around plotted measurements
A force sensor produces the data below. An engineer plots force against time and then wants explicit display limits with exactly 1 s of space before the earliest measurement and after the latest measurement, and exactly 3 N below the smallest force and above the largest force.
Complete the four-element vector for axis([v1 v2 v3 v4]), to be executed after plot. Enter exact integers without units; the table gives each entry's unit.
Count curves and connections from matrix data
Three temperature sensors are sampled at the same four times. The engineer stores the readings in the matrix T and executes the following commands on fresh axes with MATLAB's default plotting settings:
Without running the code, determine the number of separate temperature curves, the number of supplied coordinate pairs in each curve, and the total number of straight connecting segments across all temperature curves. Count only segments joining consecutive supplied coordinate pairs, excluding axes and gridlines. Enter all three counts as exact integers.
Preserve coordinate pairs when reordering
A cart's measurements were entered in the following storage order. Time is in seconds and displacement is in metres:
The graph's connecting line doubles back horizontally. Which replacement command both preserves every measured time-displacement pair and connects the samples in increasing time order?
Diagnose a misleadingly flat model plot
A prescribed displacement model is
In MATLAB, t stores numerical time values in seconds. A student runs: