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:


MATLAB
t = [0; 1.5; 3.0; 4.5];
T = [10 12  9;
     14 13 15;
     11 17 14;
     18 16 20];
figure
plot(t,T)
xlabel('Time (s)')
ylabel('Temperature (degrees C)')


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.

Your answers

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: