LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Solve this

Hi Friends,

          I am having one  Matrix X of order mxn. I need to perform this operation.

 

Variable Y=  X- (Mean of X) .

 

The mean of Matrix is a column matrix. how to solve this equation.  The matrix size can vary dynamically.. how to solve this equation. Please help me out

0 Kudos
Message 1 of 10
(3,913 Views)

Hi deepak.aamecece,

you can use the MEAN.vi. It works with arrays.

 

Mike

0 Kudos
Message 2 of 10
(3,896 Views)
0 Kudos
Message 3 of 10
(3,882 Views)

hi deepak,

  I could not understand your question?Why are you trying to substract a matrix from a column vector(mean)?

 

 

Thanks and regards,

srikrishnaNF

Regards,
Srikrishna


0 Kudos
Message 4 of 10
(3,867 Views)

Mathematically speaking, you cannot subtract a column matrix from a "rectangle" matrix. You may add or subtract only with equal size matrices.

What do you mean with X- (Mean of X)?

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 5 of 10
(3,866 Views)

Hi...

 

Let X is a matrix of size  4x4. The mean of (X) is a Column matrix. I know it is not possible in mathematics... but I need to subtract this for the application need... How to do this? 

 

 

0 Kudos
Message 6 of 10
(3,806 Views)

hi deepak,

  Only thing you can do is you can reshape the column matrix to a 4x4  and perform the operation you want..

 

Thanks and regards,

srikrishnaNF

Regards,
Srikrishna


0 Kudos
Message 7 of 10
(3,802 Views)
Hi...Friends.. I Solved this problem.Thank you for your help
0 Kudos
Message 8 of 10
(3,761 Views)

Hi deepak.aamecece,

can you please show your solution, to help to understand what we missed with all the trials to help you?

 

Thanks in advance 

Mike

Message 9 of 10
(3,753 Views)

 Hi Friends.. I solved like this... Please find the attached jpg file....What i did is: matrix X is 4x4 matrix. Mean of Matrix X is a Column matrix. I separated the first column of a matrix X. I subtracted from Column matrix and i appended back the result to the original matrix..

 

Thank you one and all for your effort you had taken to help me in this regard.

0 Kudos
Message 10 of 10
(3,736 Views)