Question: Problem 2 : Arrays, Relational Operators, and Useful functions ( sum and find ) This problem also refers to the arrays loaded from the Array

Problem 2: Arrays, Relational Operators, and Useful functions (sum and find)
This problem also refers to the arrays loaded from the Array_IndexingAssignment2.mat file. Again, dont overwrite the values in the arrays. If you do, re-load Array_IndexingAssignment2.mat.
Run each of these commands below, add (paste) the result, and explain what is occurring in a sentence or two to this file. Submit the updated file to Moodle through the Week 3 Programming Basics: Arrays, Structures & Tables link.
(a) array_1_15>0 Add (Paste) both your results and explanation here:
(b) array_1_15(3:10)>0 Add (Paste) both your results and explanation here:
(c) array_10_5<3 Add (Paste) both your results and explanation here:
(d)0< array_10_5 & array_10_5<2 Add (Paste) both your results and explanation here:
(e) array_10_5(1:3,2:4)>2 Add (Paste) both your results and explanation here:
Problem 3: Writing a Script file to create a Structure
Using good coding practices, write a script file (.m or .mlx) that creates a structure called CCCC_Student that contains 4 fields: a character array called StudentName, an int8 called StudentAge, a floating point number called StudentGPA, and a string array called StudentMajor. Include in the script the assignment an appropriate value for these fields. Submit your .m or .mlx file to Moodle through the Week 3 Programming Basics: Arrays, Structures & Tables link.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!