Re: [Scilab-users] mean of elements corresponding element is "true"

2018-03-02 Thread fujimoto2005
Dear Samuel Thank you for your answer. Best regards -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users

Re: [Scilab-users] mean of elements corresponding element is "true"

2018-03-02 Thread Samuel Gougeon
Le 02/03/2018 à 16:40, fujimoto2005 a écrit : In the attached code,"boolean_M" is a random Boolean matrix. I want to get the average of each column of A whose corresponding element of boolean_M has "true" as row vector x_V, but it does not work. Where am I wrong? n=10; boolean_M=rand(n,n)>0.5;

Re: [Scilab-users] mean of elements corresponding element is "true"

2018-03-02 Thread Samuel Gougeon
Le 02/03/2018 à 16:54, Samuel Gougeon a écrit : Le 02/03/2018 à 16:40, fujimoto2005 a écrit : In the attached code,"boolean_M" is a random Boolean matrix. I want to get the average of each column of A whose corresponding element of boolean_M has "true" as row vector x_V, but it does not work.

[Scilab-users] mean of elements corresponding element is "true"

2018-03-02 Thread fujimoto2005
In the attached code,"boolean_M" is a random Boolean matrix. I want to get the average of each column of A whose corresponding element of boolean_M has "true" as row vector x_V, but it does not work. Where am I wrong? Best regards test_meanWtboolean.sce