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.


MATLAB
t = [0 2 4 6 8];
F = [12 18 15 24 21];
plot(t,F,'-o')
xlabel('Time (s)')
ylabel('Force (N)')


A force versus time plot shows five measurements connected by straight segments.


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.

Vector entryUnitValue
v1s
v2s
v3N
v4N

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Two Dimensional Plots Questions: