input:

`x = [a,b,c; d,e,f]`

output:

`y = [a^2,a*b,a*c,b^2,b*c,c^2; d^2,d*e,d*f,e^2,e*f,f^2]`

Skip to content# MATLAB: How to find the product of each element of a matrix by itself and by the other elemets at the same row

###### Related Question

element-by-element operation on matrices

input:

`x = [a,b,c; d,e,f]`

output:

`y = [a^2,a*b,a*c,b^2,b*c,c^2; d^2,d*e,d*f,e^2,e*f,f^2]`

- How to arrange an array elemets to unique pairs
- Sort and extract elemets from a structure.
- If all elemets of a array equal, which array will be choose by MAX function
- How to find non integer elemets in matrix
- How to keep the elemets order untouched in heatmp
- How to replace multiple elemets at particular index in vector
- ‘reshape’ by identifiers
- Multiply Matrix by scalar variables
- Plot by equation.

## Best Answer