Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

5. Let's check timing information on different algorithms - the text's routine uptrbk (which is on my web site for download) and the built-in backslash

image text in transcribed
5. Let's check timing information on different algorithms - the text's routine uptrbk (which is on my web site for download) and the built-in backslash command. First, build a random 1000 1000 system: A = rand (1000, 1000); B rand (1000,1); To get timing information, use the cputime command: z1 = cputime ; X1 = uptrbk (A , B); z2 = cputime ; z2-z1 Do the same thing using the backslash command (call the solution X2) and compare the times. Clearly, the MATLAB command is much more efficient. Finally, display norm(X1-X2) to see that the 2 algorithms give essentially the same answer. Submit a copy of your script file (but not a copy of uptrbk), the 2 CPU times and the normm

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

Professional Microsoft SQL Server 2012 Administration

Authors: Adam Jorgensen, Steven Wort

1st Edition

1118106881, 9781118106884

More Books

Students also viewed these Databases questions

Question

How do Excel Pivot Tables handle data from non OLAP databases?

Answered: 1 week ago