How to obtain elementwise squaring of vector/matrix?

11262019, 11:18 PM
Post: #3




RE: How to obtain elementwise 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 elementwise squaring of vector/matrix?  mbeddo  11262019, 07:40 PM
RE: How to obtain elementwise squaring of vector/matrix?  swagner53  11262019, 08:47 PM
RE: How to obtain elementwise squaring of vector/matrix?  mbeddo  11272019, 07:16 AM
RE: How to obtain elementwise squaring of vector/matrix?  goetz  11262019 11:18 PM
RE: How to obtain elementwise squaring of vector/matrix?  mbeddo  11272019, 07:20 AM

User(s) browsing this thread: 1 Guest(s)