12-3 ?質???????

bإ߬Y@}CAYnΨ䤤YӤiU MATLAB BA]iHϥΫez Content Indexing kACuΤ@ӤAHUҤlإߤ@Ӳ}C BAAΨ䤤 1 CB 2 檺AHΤcG

Example 1: 12-}C/cellAccess01.mB = {'James Bond', [1 2;3 4;5 6]; pi, magic(5)}; % إߤ@Ӳ}C B F = B{1,2} % β}C B 1 CB 2 檺 G = B{1,2}(3,1) % YnβȰ}CcAiH Content Indexing kAA[W@x}ުk F = 1 2 3 4 5 6 G = 5

Yn@PɨΩΧRhӤAhݨϥ Cell Indexing kAҦpG

Example 2: 12-}C/cellAccess02.mB = {'James Bond', [1 2;3 4;5 6]; pi, magic(5)} % إߤ@Ӳ}C B H = B(2, :) % N B ]w B ĤGC B(:, 2) = [] % R}C B ĤGҦ B = 'James Bond' [3x2 double] [ 3.1416] [5x5 double] H = [3.1416] [5x5 double] B = 'James Bond' [3.1416]

}CiHNHurI}ܼƦCv]Comma-Separated Lists^AҦpG

Example 3: 12-}C/cellCslInput01.mF = {[2 3 5], [1 3 4], 'Timmy', 'Annie'}; plot(F{1:2}); % F{1:2} V u[2 3 5], [1 3 4]vA] plot(F{1:2}) N plot([2 3 5], [1 3 4])C

bWҤAF O@Ӻ׬ 14 }CAF{1:2} Y|V u[2 3 5], [1 3 4]vA] plot(F{1:2}) N plot([2 3 5], [1 3 4])C

PzAڭ̤]iHϥβ}CӱurI}ܼƦCv]q`OƪhX^AdҦpUG

Example 4: 12-}C/cellCslOutput01.m[D{1:2}] = max(rand(5)); celldisp(D); D{1} = 0.7317 0.7447 0.9294 0.5085 0.8176 D{2} = 1 1 4 5 2

bWҤAڭ̥iHN D{1:2} ݦOѳrI}ܼƦCA] [D{1:2}] N [D{1}, D{2}]Co譱PΡAiHJuhelp listsvӱohTC
MATLAB{]pGJg