Question: 3 . Write a python program that creates the following 1 D NumPy arrays. a = [ 1 , 2 , 3 ] b =

3. Write a python program that creates the following 1D NumPy arrays.
a =[1,2,3]
b =[4,5,6]
c =[7,8,9]
Then create matrices (2D arrays) such that:
The new matrix A is constructed by stacking a, b, and c vertically.
The new matrix B is constructed by stacking a, b, and c horizontally.
Construct a new matrix C such that matric C will be the transpose of matrix A.
Construct a new matrix B such that matric D will be the transpose of matrix B.
Finally, print the arrays.

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!