フィルターのクリア

How do I break a table down into rows, and make the rows become variable in the work space?

1 回表示 (過去 30 日間)
tash7827
tash7827 2016 年 8 月 1 日
編集済み: Stephen23 2016 年 8 月 1 日
Hi, I have a 39x3 table, and it has three columns (parameter, units, value), and there are 39 parameters. How do I make it so that I can access the parameter by their names and get the value and unit to also be included when I call it?
  3 件のコメント
tash7827
tash7827 2016 年 8 月 1 日
編集済み: tash7827 2016 年 8 月 1 日
I will use the table, but how do I access the specific parameters on it (ensuring it still comes with units etc)? Sorry - maybe the question was a little misleading.
Stephen23
Stephen23 2016 年 8 月 1 日
編集済み: Stephen23 2016 年 8 月 1 日
According to the table documentation you can simply do this when the table has rowNames defined:
T2 = patients({'Adams','Brown'},:)
In your case you might find it easiest to convert the first column into rownames, then accessing the data will be as simple as:
your_table('parameter_name',:)

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by