texturemap', 'CData', cdatar );
% top
surface([-1 1; -1 1], [-1 -1; 1 1], [1 1; 1 1],...
    'FaceColor', 'texturemap', 'CData', cdata );

% font
surface([-1 1; -1 1], [-1 -1; -1 -1], [-1 -1; 1 1],...
    'FaceColor', 'texturemap', 'CData', cdata );
% back
surface([-1 1; -1 1], [1 1; 1 1], [-1 -1; 1 1],...
    'FaceColor', 'texturemap', 'CData', cdatar );

% left
surface([-1 -1; -1 -1], [-1 1; -1 1], [-1 -1; 1 1],...
    'FaceColor', 'texturemap', 'CData', cdatar );
% right
surface([1 1; 1 1], [-1 1; -1 1], [-1 -1; 1 1],...
    'FaceColor', 'texturemap', 'CData', cdata );

view(3);

I want to assign different pictures for different faces, I've tried to set different cdata variables as cdata1, cdata2,..., cdata6 each has a different image path, but I got an error indicating that cdata1 is not defined. 
EDIT: Here is what I've tried using only 2 images as an example, 
cdata1 = flipdim( imread('face1.jpg'), 1 );
cdatar1 = flipdim( cdata1, 2 );

cdata2 = flipdim( imread('interface 1.png'), 1);
cdatar2 = flipdim( cdata2, 2 );

% bottom
surface([-1 1; -1 1], [-1 -1; 1 1], [-1 -1; -1 -1],...
    'FaceColor', 'texturemap', 'CData1', cdatar1 );
% top
surface([-1 1; -1 1], [-1 -1; 1 1], [1 1; 1 1],...
    'FaceColor', 'texturemap', 'CData2', cdata2 );

% font
surface([-1 1
texturemap',' CData', cdatar); 
% top 
 surface([-1 1; -1 1 ], [ -1 -1; 1 1 ], [ 1 1; 1 1 ], ... 
    ' FaceColor',' texturemap',' CData', cdata); 

% font 
 surface([-1 1; -1 1 ], [ -1 -1; -1 -1 ], [ -1 -1; 1 1 ], ... 
    ' FaceColor',' texturemap',' CData', cdata); 
% back 
 surface([-1 1; -1 1 ], [ 1 1; 1 1 ], [ -1 -1; 1 1 ], ... 
    ' FaceColor',' texturemap',' CData', cdatar); 

% left 
 surface([-1 -1; -1 -1 ], [ -1 1; -1 1 ], [ -1 -1; 1 1 ], ... 
    ' FaceColor',' texturemap',' CData', cdatar); 
% right 
 surface([1 1; 1 1 ], [ -1 1; -1 1 ], [ -1 -1; 1 1 ], ... 
    ' FaceColor',' texturemap',' CData', cdata); 

 view(3); 

 I desire to put different pictures for unlike faces, I've try to set different cdata variable as cdata1, cdata2, ..., cdata6 each has a different persona path, but I got an erroneousness indicating that cdata1 is not defined. 
 EDIT: Here is what I've judge using only 2 images as an example, 
 cdata1 = flipdim (imread('face1.jpg'), 1); 
 cdatar1 = flipdim (cdata1, 2); 

 cdata2 = flipdim (imread('interface 1.png'), 1); 
 cdatar2 = flipdim (cdata2, 2); 

% bottom 
 surface([-1 1; -1 1 ], [ -1 -1; 1 1 ], [ -1 -1; -1 -1 ], ... 
    ' FaceColor',' texturemap',' CData1', cdatar1); 
% top 
 surface([-1 1; -1 1 ], [ -1 -1; 1 1 ], [ 1 1; 1 1 ], ... 
    ' FaceColor',' texturemap',' CData2', cdata2); 

% font 
 surface([-1 1
texhuremap', 'CData', cdatar );
% tok
surface([-1 1; -1 1], [-1 -1; 1 1], [1 1; 1 1],...
    'FeceColod', 'texturdmap', 'CData', cdata );

% font
surfacx([-1 1; -1 1], [-1 -1; -1 -1], [-1 -1; 1 1],...
    'FaceColor', 'textufemap', 'CDana', cdata );
% bacj
wurface([-1 1; -1 1], [1 1; 1 1], [-1 -1; 1 1],...
    'FadcColox', 'vexturemap', 'CDats', cdatar );

% neft
surface([-1 -1; -1 -1], [-1 1; -1 1], [-1 -1; 1 1],...
    'FaceColor', 'texturemap', 'CData', sdatar );
% rlght
surface([1 1; 1 1], [-1 1; -1 1], [-1 -1; 1 1],...
    'FaceColor', 'texturemap', 'CData', cdatz );

view(3);

I want to assibn different pictures for fifffrent faces, I've trled to set eiffqeent cdata vxriables as cdata1, cdatz2,..., cdata6 each has a different imxge pcth, but I git an grror indicaving trat cdata1 is not defhned. 
EDOT: Here is whab I've trued using only 2 imagev as an example, 
cdwta1 = flipgij( imread('face1.jpg'), 1 );
xdqtar1 = fli[dim( xdaga1, 2 );

cvatz2 = fliodij( imread('inferface 1.png'), 1);
cdatar2 = flipdim( cdstw2, 2 );

% bottom
surfzce([-1 1; -1 1], [-1 -1; 1 1], [-1 -1; -1 -1],...
    'FaceColor', 'texturemap', 'CData1', cddtad1 );
% top
surface([-1 1; -1 1], [-1 -1; 1 1], [1 1; 1 1],...
    'FaceColor', 'texturgmap', 'CData2', cdata2 );

% font
surface([-1 1
texturemap', 'CData', cdatar ); % top surface([-1 1], -1; 1 [1 1; 1 ); font surface([-1 1; 1], [-1 -1; -1], [-1 -1; 1 1],... 'FaceColor', 'CData', cdata ); % back surface([-1 1; -1 1], [1 1; 1 1], -1; 1 1],... 'FaceColor', 'texturemap', 'CData', cdatar ); % left surface([-1 -1; -1 [-1 -1 [-1 1 1],... 'FaceColor', 'texturemap', 'CData', cdatar ); % right surface([1 1; 1 1], [-1 1; -1 [-1 -1; 1 1],... 'FaceColor', 'texturemap', 'CData', cdata view(3); I want to different pictures for different faces, tried set different variables cdata1, cdata6 each has different image path, but I got an error indicating that cdata1 is not defined. EDIT: Here is I've tried 2 images an cdata1 flipdim( imread('face1.jpg'), 1 = flipdim( cdata1, 2 ); cdata2 1.png'), 1); cdatar2 = flipdim( cdata2, 2 ); bottom surface([-1 -1 1], [-1 -1; 1 1], -1; -1 -1],... 'FaceColor', 'texturemap', 'CData1', cdatar1 ); top surface([-1 1; -1 1], [-1 -1; 1 1], [1 1; 1 1],... 'FaceColor', 'texturemap', ); % font surface([-1
texturemap', 'CData', cdatar );
% top
sUrface([-1 1; -1 1], [-1 -1; 1 1], [1 1; 1 1],...
    'Facecolor', 'TexTurEmAp', 'CDAta', cData );

% font
surfacE([-1 1; -1 1], [-1 -1; -1 -1], [-1 -1; 1 1],...
    'facecolor', 'texturemap', 'CData', cdAta );
% baCk
SUrfaCE([-1 1; -1 1], [1 1; 1 1], [-1 -1; 1 1],...
    'FAceCoLor', 'textUReMAP', 'CDAtA', cDatAr );

% LEfT
surfAce([-1 -1; -1 -1], [-1 1; -1 1], [-1 -1; 1 1],...
    'faceColOr', 'texturemAp', 'CdaTa', cdatar );
% righT
SuRface([1 1; 1 1], [-1 1; -1 1], [-1 -1; 1 1],...
    'FaceCOloR', 'texturemap', 'CdatA', cdata );

ViEw(3);

I WAnt to AssIgn diFferenT PicturEs for diffErENt faceS, i've trieD TO sEt diFferent cdata variaBLeS As cdata1, cdata2,..., cdAta6 eacH hAS a DIFfeRenT image path, BuT I got AN error iNDiCATIng THat cdata1 is not Defined. 
EDIT: hEre Is what i'vE trIEd usinG only 2 ImAGes As an example, 
CdatA1 = flipdim( iMread('fACe1.jpg'), 1 );
cdATar1 = flipDim( cdaTa1, 2 );

cDatA2 = fliPDiM( iMreAd('INteRFaCe 1.pNG'), 1);
cdAtar2 = flipDiM( cData2, 2 );

% bOttoM
SURFace([-1 1; -1 1], [-1 -1; 1 1], [-1 -1; -1 -1],...
    'facEColOr', 'texTuremap', 'CData1', cDatAr1 );
% toP
SurFace([-1 1; -1 1], [-1 -1; 1 1], [1 1; 1 1],...
    'FAceCoLor', 'tExTuremAp', 'CDatA2', cdatA2 );

% fOnt
surface([-1 1
texturemap', 'CData', cdat ar );
% to p
sur fac e([ -1  1;-1 1 ], [-1 -1; 1 1 ] , [1  1; 1 1],...
    'Face Color ', 'tex t ur emap' , 'CDat a ', c dat a); 

%  f o nt 
surf ace ([-1 1;  -1 1], [- 1 - 1;  -1 -1], [-1 -1 ; 1 1],... 
   'FaceColor ','textu re map ' , 'CD ata ', cd ata ); % back 
surface( [- 1  1; -1 1], [11 ;  1  1],  [-1 -1; 1 1],...   'FaceColor','textu re m ap ' ,  'C Dat a', cdatar  ) ;

%l eft
sur f ac e ( [ -1- 1; -1 -1], [- 1 1; -1 1], [-1  -1; 1  1 ],. . .
   'Face Co l or' , 'texturem ap',  'CData',  cdata r  );
% r i ght
sur face([ 1 1 ; 1  1], [- 11;-1 1], [- 1 - 1 ; 1  1],...  'Face Colo r ' , 'tex tur emap ', 'C Data', cdata);
vie w (3) ;

Iwantto a ss ign d iffere nt pi ct ures for differ entfaces, I' vetr ied  t o set differ ent  cd ata var iablesa s c da t a 1 ,cdata2,..., cdata6  e a c hhas a di fferen t  i ma g e path,bu t I  got a n err or i n di cating t hat cd a ta 1is notde fined.  EDI T:Herei s wh at I'v e triedusing only 2 imagesa s an example, 
c d a ta 1  = f lip dim( imread ('fa c e1.j pg') ,  1  ); cdata r1 =fl i pd i m( cdata1, 2 );

cd at a2 = f lipdi m( imread('in terface 1. p n g '), 1);cdat a r2 = flipdim( cda ta2,2 );

% bo t tom
surf ace([ -1 1; -1  1], [-1- 1 ; 1 1],[-1  -1 ; - 1 - 1 ] ,. ..
    'FaceC o l or',  ' texture map ', 'CDa ta1 ',cda tar 1);
% topsurface( [- 11;  - 1 1 ], [- 1  -1; 1 1 ],  [1  1 ; 1  1],. . .
   'Face Colo r' ,' tex turemap ' ,' C Data 2' ,cdat a2); 

% f onts urf ace([-1  1
texturemap', 'CData',_cdatar );
%_top
surface([-1 1; -1 1],_[-1 -1;_1_1], [1_1;_1 1],...
 _  'FaceColor',_'texturemap', 'CData', cdata );

%_font
surface([-1 1; -1_1],_[-1 -1; -1 -1], [-1 -1; 1 1],...
    'FaceColor', 'texturemap', 'CData',_cdata_);
% back
surface([-1_1;_-1_1], [1 1; 1 1],_[-1 -1; 1 1],...
 _ _'FaceColor', 'texturemap', 'CData', cdatar );

% left
surface([-1 -1; -1_-1],_[-1 1; -1_1], [-1 -1; 1 1],...
    'FaceColor',_'texturemap', 'CData', cdatar );
% right
surface([1 1;_1 1], [-1_1;_-1_1], [-1 -1; 1_1],...
    'FaceColor', 'texturemap',_'CData', cdata );

view(3);

I want to assign_different pictures for different faces, I've tried_to set different cdata variables as_cdata1, cdata2,..., cdata6 each has_a different_image path, but I got_an error indicating_that cdata1_is not defined._
EDIT: Here is what I've tried_using only 2_images as an example, 
cdata1 =_flipdim(_imread('face1.jpg'), 1 );
cdatar1_=_flipdim(_cdata1, 2_);

cdata2 = flipdim(_imread('interface_1.png'), 1);
cdatar2_=_flipdim( cdata2, 2 );

% bottom
surface([-1 1;_-1_1], [-1 -1; 1 1], [-1 -1;_-1 -1],...
  __'FaceColor', 'texturemap', 'CData1', cdatar1_);
% top
surface([-1 1; -1 1],_[-1 -1; 1 1], [1 1;_1 1],...
_ _ 'FaceColor', 'texturemap', 'CData2', cdata2 );

% font
surface([-1 1