Answered step by step
Verified Expert Solution
Question
1 Approved Answer
6. Create the following 4x5 matrix using Numpy command X2= array([[34, 5, 7, 4, 13), [ 8. 6, 11, 8.12] 19. 6, 5, 3, 17],
6. Create the following 4x5 matrix using Numpy command X2= array([[34, 5, 7, 4, 13), [ 8. 6, 11, 8.12] 19. 6, 5, 3, 17], [7, 9, 8, 2, 13]] What is the output for the following commands for the above matrix X2 a). np.vsplit(X2, (1,3]) (2M) b). np.hsplit(X2, [3]) (2M) c). np.concatenate([X2.X2], axis=1) (2M) d). np vstack([X2 X2]) (2M) e). np.hstack([X2,X2]) (2M)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started