Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

USING MATLAB, PLEASE! PLEASE MATLAB! I ONLY NEED 7, 8, 10, 11 AND 12. I ONLY ADDED EVERYTHING FOR CONTEXT. I NEED 7, 8, 10,

USING MATLAB, PLEASE! PLEASE MATLAB! I ONLY NEED 7, 8, 10, 11 AND 12. I ONLY ADDED EVERYTHING FOR CONTEXT. I NEED 7, 8, 10, 11, 12.

Task #1: Generate a 6x2 matrix (6 rows, 2 columns) with random whole numbers between 1 and 9 using the randi function. Name this mat1.

Task #2: Generate a 6x3 matrix (6 rows, 3 columns) with random whole numbers between 1 and 9 using the randi function. Name this mat2.

Task #3: Concatenate mat1 and mat2 horizontally to create a 6x5 matrix called mat3.

Task #4: Modify mat1 to add another column using horizontal concatenation. You can create another column by using the randi function again to generate whole numbers between 1 and 9. Remember that in order to add another column to mat1, it will need to be the same height (number of rows) as mat1 already has. After you have added the additional column, mat1 should now be a 6x3 matrix.

Task #5: Concatenate mat1 and mat2 vertically to create a 12x3 matrix called mat4. If you receive an error in this task, make sure that mat1 was properly modified in Task #4.

Task #6: Update the element in the 3rd row and 4th column of mat3 to 1000

Task #7: Update the element in the last row and last column of mat4 to 500

Task #8: Replace the 4th row of mat3 with all zeros.

Task #9: Similar to the class presentation, replace the top right-hand corner of elements (2 rows and 2 columns) in mat3 with task9Mat. task9Mat = [ 10 20 ; 30 40]

Task #10: Reshape mat4 to be a 6x6 matrix using the reshape function.

Task #11: Replicate task9Mat using repmat to generate a 8x8 matrix called task11Mat.

Task #12: Replicate task9Mat using repelem to generate a 10x14 matrix called task12Mat.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Neo4j

Authors: Gregory Jordan

1st Edition

1484200225, 9781484200223

More Books

Students also viewed these Databases questions

Question

=+ What are the information and consultation requirements?

Answered: 1 week ago

Question

=+ Should the MNE belong (why, why not)?

Answered: 1 week ago