Question: 4) a) Again, to make sure you understand how the find command works, enter the script n = 10; x = randperm(n)'; y = randperm(n)';

 4) a) Again, to make sure you understand how the find

4) a) Again, to make sure you understand how the find command works, enter the script n = 10; x = randperm(n)'; y = randperm(n)'; i_gt = find (x > y); disp([x, y]) disp([x(i_gt), y(i_gt), i_gt]) In this new script we cannot include i_gt with [x, y], i.e., the first disp statement, because it most likely they do not have the same length. Instead, we use the last statement. b) Convert this script to use a logical test so you can use "disp( [x, y, .....])

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!