Answered step by step
Verified Expert Solution
Question
1 Approved Answer
a) Consider the numpy arrays a and b defined in the code below. a=nparray([4,2,7,5]),reshape(2,2)b=nparray([num2fornumina]).reshape(2,2) Match each line of code to its output below. ## (a)
a) Consider the numpy arrays a and b defined in the code below. a=nparray([4,2,7,5]),reshape(2,2)b=nparray([num2fornumina]).reshape(2,2) Match each line of code to its output below. \#\# (a) print (np.concatenate ( (a, b ) ) , " ") \#\# (b) print (np.concatenate ( (a,b), axis=0)," ") \#\# (c) print (np.concatenate( (a,b), axis=1)," ") \#\# (d) print (np. concatenate ( (b, a ) ), " ") \#\# (e) print (np.concatenate ( (b,a), axis=0), " ") \#\# (f) print (np.concatenate ( (b,a), axis=1), " ") (1) [42] [75] [164] [4925] (2) [16442][492575] (3) (4) [ [ 1616 [4925] [42] [75]
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