subject

In this problem, you will write code that computes the Kronecker product of two arrays. Suppose A is a numeric array of size r-by-c and B is a numeric array of size n-by-m. Then the Kronecker product of A with B is a numeric array, of dimension rn-by-cm, de ned as: product of A with B is a numeric array, of dimension rn-by-cm, defined as:
C = [ a11B a12B ... a1cB a21B a22B ... a2cB ar1B ar3B ... arc B]
Notation: Here, aij refers to the element of A in row i and column j. Hence, the expression a12B means the scalar a12 multiplied by the array D, resulting in an array that is the same dimension as B.
For example if A = [1 2 3 4] and B = [1 10 100], then C, the Kronecker Product of A with B, would be
C = [1 10 100 2 20 200 3 30 300 4 40 400]
Using for loops write code that assigns to the variable C the Kronecker product of the variable A with the variable B. Test your code for many different values and sizes of A and B to ensure it is correct.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:00
You should try to photograph people on bright sunny days because the light will be best a) true b) false
Answers: 1
question
Computers and Technology, 22.06.2019 18:00
When is it appropriate to use an absolute reference
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
What are some ways to use a range name in a formula? check all that apply. in the defined names group, click use in formula, and then select the desired name. begin typing the name in the formula, select a name from the autocomplete list, and use the arrow keys and tab key to enter the name in the formula. begin typing the formula, and then click and drag with the mouse to select the cells to include in the formula. right-click one of the cells in the range. click formula options, and use the dialog box to add the name.
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
To check whether your writing is clear , you can
Answers: 2
You know the right answer?
In this problem, you will write code that computes the Kronecker product of two arrays. Suppose A is...
Questions
question
Biology, 31.07.2019 01:30