logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Roshan NehraPhilosophy
(5/5)

683 Answers

Hire Me
expert
Barry CresswelllTechnical writing
(5/5)

541 Answers

Hire Me
expert
Jaydon KeySocial sciences
(5/5)

513 Answers

Hire Me
expert
Hemidov MuradManagement
(5/5)

640 Answers

Hire Me
MATLAB
(5/5)

Write code in Matlab to perform the following Data Creation and Storage

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Data Science Assignment 1: Basics & Titanic Dataset    [50 marks]

 

Figure 1: Elements of Matrix R88

 

Basics: Write code in Matlab to perform the following

 

Data Creation and Storage: Create the following matrices: 

A 6 x 6 matrix containing ones, and name it O6                [1 mark]

Create the R55 matrix as shown in Figure 1 above            [1 mark]

Save matrix R55 at location C:\Matlab\Work                    [1 mark]

 

Data Extraction: Extract the following items from R55 created in part(a):

Element located on the 2nd row and 5th column, and name it E25 [1 mark]

The entire third row, and name it Row3                                        [1 mark]

The entire 3rd column, and name it Col3                                        [1 mark]

The Subsection of elements starting from the element located on the 1st row and 3rd column, and ending at the element located on the 4th row and 4th column, and name it Sub1344                                                   [1 mark]

 

Data Modification: Replace the subsection, Sub1344, in matrix R55, with the corresponding subsection from matrix O6, and name it R55Mod         [1 mark]

 

Searching Through Data: Search through matrix R55 to find the specific element of: SE = 6, and indicate where these elements are located, using:

For loops and if statements              [3 marks]

Logical matrices                               [3 marks]

The find function in Matlab             [3 marks]

 

Sorting Data: sort matrix R55 by: 

Rows (you can use the sortrows function in Matlab)              [1 mark]

Columns (you can use the sortrows function in Matlab)        [1 mark]

 

Obtain Basic Statistics: obtain the following:

Median value from the entire matrix R55                              [1 mark]

Minimum value from Row 5 of matrix R55                          [1 mark]

Maximum value from Col 3 of matrix R55                           [1 mark]

Standard deviation of matrix Sub1344 (in part 2-d)              [1 mark]

 

Plotting Data: plot a graph of the sin function using 700 points    [1 mark]

 

Create a Function: to find the multiplication of three numbers    [3 marks]

 

 

Analysis of the Titanic Dataset: Write code in Matlab to perform the following:

 

Fill-in Missing Data: fill the missing ages with the median age.  [5 marks]

 

Locating Data: find the names and class (Pclass) of persons who payed (Fare) above 55 dollars in fares for their ticket                                          [8 marks]                                                                      

 

Finding Simple Probability: find the probability of survival given the guest is a mid-aged man (i.e. with age between 30-50) staying in a third class cabin  (Pclass = 3)                                                                                      [10 marks]

 

(5/5)
Attachments:

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme