% EXAMPLE 2 % 3D Data % 3D fuzzy c-means algorithm % clear all, close all, clc sample1 = [ ( 75.2 - 32 ).*rand( 1, 20 ) + 32, ... ( 60 - 20 ).*rand( 1,20 ) + 20, ... ( 15 -( -3.4 ) ).*rand( 1, 20 ) + ( -3.4 ) ]'; % sample2 = [ ( 19.2 - 1 ).*rand( 1,20 ) + 1, ... ( -10 - ( -42.5 ) ).*rand( 1,20 ) + ( -42.5 ), ... ( 20.4 - ( -5 ) ).*rand( 1,20 ) + ( -5 ) ]'; % sample3 = [ ( 100 - 70 ).*rand( 1, 20 ) + 70, ... ( 45 - 30 ).*rand( 1,20 ) + 30, ... ( 60 - 40 ).*rand( 1,20 ) + 40 ]'; % inputs = [ sample1, sample2, sample3 ]; % [ U, C ] = fuzzy_c_means( inputs, 3, 2, 1e-9 );