Question: Write a function that takes two inputs, arr1 and arr2, and returns two outputs, arr12 and arr21. All inputs and outputs are arrays. arr12 should

Write a function that takes two inputs, arr1 and arr2, and returns two outputs, arr12 and arr21. All inputs and outputs are arrays. arr12 should be an array with all of the numbers in arr1 followed by all of the numbers in arr2. arr21 should be all of the numbers in arr2 followed by all of the numbers in arr1. You function should work in the case that arr1 and arr2 have different orientations (i.e., one is vertical, the other is horizontal). This means you should use loops to accomplish this task. Do not use built in MATLAB functions that combine 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!