How to obtain element-wise squaring of vector/matrix?
|
11-26-2019, 11:18 PM
Post: #3
|
|||
|
|||
RE: How to obtain element-wise squaring of vector/matrix?
Alternatively you could also use the "point" operator .^ for element wise power operator on a vector or matrix , e.g.:
Code: [1, 2, 3, 4].^2 resulting in: [1, 4, 9, 16] |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
How to obtain element-wise squaring of vector/matrix? - mbeddo - 11-26-2019, 07:40 PM
RE: How to obtain element-wise squaring of vector/matrix? - swagner53 - 11-26-2019, 08:47 PM
RE: How to obtain element-wise squaring of vector/matrix? - mbeddo - 11-27-2019, 07:16 AM
RE: How to obtain element-wise squaring of vector/matrix? - goetz - 11-26-2019 11:18 PM
RE: How to obtain element-wise squaring of vector/matrix? - mbeddo - 11-27-2019, 07:20 AM
|
User(s) browsing this thread: 1 Guest(s)