12-2 ?質????顯?

򥻤WAYb MATLAB OAIs}CW١AMATLAB äܲ}CUeȡ]Dȫܺ²^AӬOܦUƫAκסAҦpG

Example 1: 12-}C/cellShow01.mA = {'James Bond', [1 2;3 4;5 6]; pi, magic(5)}; A A = 'James Bond' [3x2 double] [ 3.1416] [5x5 double]

t~Aڭ̥iϥ cellplot ON}C A ƫAAHϧΪ覡ܡAdҦpUG

Example 2: 12-}C/cellPlot01.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'}; cellplot(A) % HϧΪ覡ܲ}C A ƫA

YnܤWz}C A UӺcڤeAiϥ celldisp OAdҦpUG

Example 3: 12-}C/cellDisp01.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'}; celldisp(A) % ܲ}C A UӺcڤe A{1,1} = this is the first cell. A{2,1} = 1 2 3 4 5 6 7 8 9 A{1,2} = 5.0000 + 6.0000i 4.0000 + 5.0000i A{2,2}{1} = Tim A{2,2}{2} = Chris

be@`Ҵإ߲}Ck Content IndexingA]iHΨӪN}C A UӺce@ܥXӡAҦpG

Example 4: 12-}C/cellShow02.mA = {'James Bond', [1 2;3 4;5 6]; pi, magic(5)}; A{:} % ܲ}C A c ans = James Bond ans = 3.1416 ans = 1 2 3 4 5 6 ans = 17 24 1 8 15 23 5 7 14 16 4 6 13 20 22 10 12 19 21 3 11 18 25 2 9


MATLAB{]pGJg