Budget memory for selected arrays

Before importing an experiment's data, you inspect sensor_run.mat, a MAT-file. The saved arrays have the following properties.


Variable

Rows

Columns

Class

voltage_V

12000

4

double

time_s

12000

1

double

diagnostics

12000

8

double


All arrays are full, real arrays. Each double element occupies 8 bytes. For this estimate, numeric payload means storage occupied by array elements alone; ignore array headers and temporary copies.


The compressed file occupies 160000 bytes on disk. Your import has a numeric-payload budget of 500000 bytes. You will load only voltage_V and time_s.


Calculate the combined numeric payload of those two arrays and the unused budget after importing them. Give both answers in bytes, as exact integers with no decimal places.

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 Using Script Files and Managing Data Questions: