Home > Software design >  Kronecker product parameters
Kronecker product parameters

Time:03-29

Between what variables is this kron function doing the Kronecker product? (MATLAB)

y = kron(x,[1:size(x)]);

I understand what the first variable is, but what does [1:size(x)] mean? Don't you need to put an array/list before it so it means something?

CodePudding user response:

If x is a column vector, then n=size(x) will be its length and 1:size(x) will be the row vector [1...n].

If x is a matrix or higher dimensions, the expression 1:size(x) will take the row count only.

IF the Kronecker Product between those quantities makes sense or not, it depends on your application.

CodePudding user response:

[1:size(x)] will produce a vector the size of vector x, and his entries will be: [1,2,3,...,n]

  • Related