data = csvread( 'pima-indians-diabetes.data' ); [ mm, nn ] = size( data ); nn = nn - 1; xx = data( :, 1:nn ); yy = data( :, nn + 1 ) * 2 - 1;