Problem 2 Write a function TwoArrays with no inputs and two

Problem #2. Write a function, TwoArrays, with no inputs and two array outputs. Internally, your function should construct the following two arrays using the square bracket, the colon, the linspace, and the transpose operators. The two arrays should be your functions output.

arrayB is the transpose of arrayA

Solution

Array A transpose is got by swapping simply rows to columns and columns to rows

Hence array B

=

1 80 3 99
11 75 6 89
21 70 9 79
31 65 12 69
41 60 15 59
51 55 18 49
61 50 21 39
71 45 24 29
Problem #2. Write a function, TwoArrays, with no inputs and two array outputs. Internally, your function should construct the following two arrays using the squ

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site