Here's the code i wrote recently to remove the outliers from the experimental data. Anything outside the range from Q1-1.5IQR to Q3+1.5IQR will be removed.
a=[10 11 13 19 9 8 11 14 12 17 1 2 10 11 13 12 12 11 10];
IQR=iqr(a);
lowr=prctile(a,25)-1.5*IQR;
highr=prctile(a,75)+1.5*IQR;
new_a=a(a>lowr & a<highr);
MATLAB applications, tutorials, examples, tricks, resources,...and a little bit of everything I learned ...
Thursday, May 24, 2012
Subscribe to:
Posts (Atom)
my-alpine and docker-compose.yml
``` version: '1' services: man: build: . image: my-alpine:latest ``` Dockerfile: ``` FROM alpine:latest ENV PYTH...
-
It took me a while to figure out how to insert a space in Mathtype equations. This is especially useful when you write an equation with mult...
-
Recently I read post from Dr. Doug Hull's blog: http://blogs.mathworks.com/videos/2009/10/23/basics-volume-visualization-19-defining-s...
-
To get the slope of a pair of x and y, usually I first plot the curve and then add the trend line. Actually there are two functions i...