Question
MATLAB HELP PLEASE LEAVE COMMENTS AND SHOW ALL STEPS Building a Cell Array Write a function [studentCell] =classCellArray(studentNames, studentIDs, studentGrades) that accepts a 4 x
MATLAB HELP PLEASE LEAVE COMMENTS AND SHOW ALL STEPS
Building a Cell Array Write a function [studentCell] =classCellArray(studentNames, studentIDs, studentGrades) that accepts a 4 x 3 char array of names (studentNames), a 4 x 6 char array of student IDs (studentIDs), and a 4 x 3 double array of grades (studentGrades). The function should return a 4 x 4 cell array (studentCell) with the data in studentNames occupying the all rows of the first column of the cell array studentCell, the data in studentIDs occupying the all rows of the second column of the cell array studentCell, the data in studentGrades occupying the all rows of the third column of the cell array studentCell, and the fourth column containing the mean of the three grades for each student. i.e. studentCell(1,4) contains the mean of the data in studentGrades(1,:); studentCell(2,4) contains the mean of the data in studentGrades(2,:);etc. A table with sample data is provided below, but the function should work for ANY variable inputs that follow the format specified above. Be sure to verify that your function can handle the same inputs and produce the same outputs as the test cases below. Check both the class and size! Table 1: Sample Data for classCellArray.m
Name Student ID Lab
Jon A10293 [70, 81, 90]
Tom B10498 [91, 10, 87]
Rey C10201 [64, 100, 77]
Kip D19532 [100, 99, 77]
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started