positive and negative deflection
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Gonzalo Guerrero
il 1 Giu 2020
Commentato: Gonzalo Guerrero
il 1 Giu 2020
Hi,
I need to know when a number deflects to either side of a set up value(i.e. find the row where a value differs from 0+-0.5). I have tried this, but doesn't work:
deflection= find(RF>mean+standardeviation |RF<mean-standardeviation).
Thank you
Gonzalo
0 Commenti
Risposta accettata
Image Analyst
il 1 Giu 2020
mean is a built-in function. It requires an argument, like mean(RF). Then it should work.
mu = mean(RF);
standarDeviation = std(RF);
deflectionAbove = RF > mu + standarDeviation % Logical vector
deflectionBelow = RF < mean - standarDeviation
deflection = deflectionAbove | deflectionBelow; % A logical vector
deflection = find(deflectionAbove | deflectionBelow); % A linear index vector
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!