Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4. (30 points) Write a Matlab function that takes as input o n: the dimension of a square matrix m: the number of vectors generates

image text in transcribed
4. (30 points) Write a Matlab function that takes as input o n: the dimension of a square matrix m: the number of vectors generates an nxn random matrix A and m-many random vectors bi,...bm .generates the LU decomposition of A solves Arb, inear system forali both by using the built-in method and the LU-method and outputs tl: the time it took your computer to solve the systems using the built in method t2: the time it took your computer to solve the systems using LU method. Hints: Use tic and toc command to time your code (google tic toc matlab for its usage) Generate an nxm random matrix and use the columns of that as the vectors b (google how to pull columns from a matrix matlab) 4. (30 points) Write a Matlab function that takes as input o n: the dimension of a square matrix m: the number of vectors generates an nxn random matrix A and m-many random vectors bi,...bm .generates the LU decomposition of A solves Arb, inear system forali both by using the built-in method and the LU-method and outputs tl: the time it took your computer to solve the systems using the built in method t2: the time it took your computer to solve the systems using LU method. Hints: Use tic and toc command to time your code (google tic toc matlab for its usage) Generate an nxm random matrix and use the columns of that as the vectors b (google how to pull columns from a matrix matlab)

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

Database Management An Organizational Perspective

Authors: Richard T. Watson

1st Edition

0471305340, 978-0471305347

More Books

Students also viewed these Databases questions

Question

fscanf retums a special value EOF that stands for...

Answered: 1 week ago

Question

What does the start( ) method defined by Thread do?

Answered: 1 week ago

Question

3. What are the current trends in computer hardware platforms?

Answered: 1 week ago