12-1 ?質????建?

}CC@ӤAiHݦO@өPβl]Cell^AΨxsUؤPA MATLAB ơAҦpGeXwйLrBx}Bh}CAάOU@YNЪc}CUؤPAơC

Hint
Cell Arrays ӭ^r½ĶӬOul}CvάOuM}CvAONqäC]̦bN½Ķu}CvA}CUӺciH]tuPʽ誺ƫAvNqC

Tؤ覡iHΨӫإ߲}CAOO Cell IndexingBContent IndexingBΨϥΤjA {} kAHUv@|һC

ڭ̥iwﲧ}CUӺcA@@[H]wAثإ߲}Ckq٬ uCell IndexingvAҦpG

Example 1: 12-}C/cell01.mA(1,1) = {'This is the first cell.'}; A(1,2) = {[5+j*6 , 4+j*5]}; A(2,1) = {[1 2 3; 4 5 6; 7 8 9]}; A(2,2) = {{'Tim'; 'Chris'}} A = 'This is the first cell.' [1x2 double] [3x3 double] {2x1 cell }

bWҤAإߤF@Ӳ}C AA׬ 22Aѥ|Ө㦳PƫAҺcA䤤 A(1,1) O@Ӧr This is the first cell.A A(1,2) O@Ӻ׬ 12 Ƽư}C [5+j*6, 4+j*5]AA(2,1) O@Ӻ׬ 33 ư}C [1 2 3; 4 5 6; 7 8 9]A A(2,2) hst@ӲȰ}CA}COѦrҺcG {Tim, Chris}C}C A eiHϥܦpUG

t@إ߲}CkA٬ Content IndexingAHUϥΦkӫإߤ@ӻPezۦP}C AG

Example 2: 12-}C/cell02.mA{1,1} = 'this is the first cell.'; A{1,2} = [5+j*6, 4+j*5]; A{2,1} = [1 2 3; 4 5 6; 7 8 9]; A{2,2} = {'Tim'; 'Chris'} A = 'this is the first cell.' [1x2 double] [3x3 double] {2x1 cell }

ھڵ̪gAContent Indexing O@ӤnOkAuݱNx} indexing ҥΪpA令jAYiCipUG

ĤTثإ߲}CkAOϥΤjA {} NҦe@]wA|ҦpUG

Example 3: 12-}C/cellConcat01.mA = {'James Bond', [1 2;3 4;5 6]; pi, magic(5)} B = {rand(3), randperm(4); eps, 'NTU'} C = [A B] % N}C A B kñ A = 'James Bond' [3x2 double] [ 3.1416] [5x5 double] B = [3x3 double] [1x4 double] [2.2204e-16] 'NTU' C = 'James Bond' [3x2 double] [3x3 double] [1x4 double] [ 3.1416] [5x5 double] [2.2204e-16] 'NTU'

bWzdҤAڭ̨ϥ C = [A B] ӦX֨Ӳ}CAHإߤ@s}CA覡PX֤@}CkۦPC
MATLAB{]pGJg