Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please use MathLab to solve. In this exercise, you create matrices manually or randomly per instructions. You may need the following commands for part (c).

please use MathLab to solve.
image text in transcribed
image text in transcribed
In this exercise, you create matrices manually or randomly per instructions. You may need the following commands for part (c). - The command rand (n ) generates an nn matrix of random numbers between 0 and 1 - The command rand (m,) generates an mn matrix of random numbers between 0 and 1 - The command randi ([min,max],m,n) generates an mn matrix of random integers between min and max numbers - The command [m,n]= aize (A) returns two numbers, m, and n, where m is the number of rows of A and n is the number of columns of A (a) Create a matrix manually - Create the following matrices in MATLAB and display the output A=147258369b=111c=[222]D=142231324413 - Run the following commands, display the output, and briefly describe the result of each command A(:,2) D(3,5) (A b) (A e) (You may get an error message for this command, and you need to make a minor fix so that the output is a 43 matrix with vector c placed on the 4 th row) (b) Create special matrices: Use the following commands, display the output, and briefly describe the result of each command eye (5) zeros (3,4) zeroa (3) ones (2,3) diag(c) (c) Create random matrices: Use the commands below to generate the matrices, display the output, and briefly describe the result of each command o F - randi ([5,5],3,5) F(:,[121)=F(,[211] E=AF] - [m,n]size(E) E(:,[25)) E(:,2:5}

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

Concepts of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

7th edition

978-1111825911, 1111825912, 978-1133684374, 1133684378, 978-111182591

More Books

Students also viewed these Databases questions

Question

4. Design a career management system.

Answered: 1 week ago

Question

4. Evaluation is ongoing and used to improve the system.

Answered: 1 week ago

Question

6. Effectively perform the managers role in career management.

Answered: 1 week ago