Main Content

height

説明

H = height(T) は、table T 内の行数を返します。

height(T)size(T,1) と等価です。

すべて折りたたむ

table T を作成します。

LastName = {'Smith';'Johnson';'Williams';'Jones';'Brown'};
Age = [38;43;38;40;49];
Height = [71;69;64;67;64];
Weight = [176;163;131;133;119];
BloodPressure = [124 93; 109 77; 125 83; 117 75; 122 80];

T = table(Age,Height,Weight,BloodPressure,'RowNames',LastName)
T=5×4 table
                Age    Height    Weight    BloodPressure
                ___    ______    ______    _____________

    Smith       38       71       176       124     93  
    Johnson     43       69       163       109     77  
    Williams    38       64       131       125     83  
    Jones       40       67       133       117     75  
    Brown       49       64       119       122     80  

table T 内の行数を求めます。

H = height(T)
H = 5

T には 5 行があります。height は変数名をカウントしません。

入力引数

すべて折りたたむ

入力 table または配列。

拡張機能

バージョン履歴

R2013b で導入

すべて展開する

参考

| |