Complete the code to calculate the mean of the data vector.
data = [5, 10, 15, 20, 25]; mean_value = [1](data);
The mean function calculates the average value of the data vector.
Complete the code to calculate the median of the data vector.
data = [3, 7, 9, 2, 5]; median_value = [1](data);
The median function finds the middle value when data is sorted.
Fix the error in the code to calculate the standard deviation of the data vector.
data = [4, 8, 12, 16, 20]; std_dev = [1](data);
The std function calculates the standard deviation, which measures spread.
Fill both blanks to create a structure with mean and median of the data vector.
data = [2, 4, 6, 8, 10]; stats = struct('mean', [1](data), 'median', [2](data));
The struct function creates a structure with fields. Use mean and median to fill the fields.
Fill all three blanks to create a structure with mean, median, and standard deviation of the data vector.
data = [1, 3, 5, 7, 9]; stats = struct('mean', [1](data), 'median', [2](data), 'std_dev', [3](data));
Use mean for average, median for middle value, and std for standard deviation.
