Extracting the column value of a table

3 ビュー (過去 30 日間)
Reshma Ravi
Reshma Ravi 2017 年 6 月 11 日
回答済み: Stalin Samuel 2017 年 6 月 11 日
I have a table with two columns which is symbol and value, for eg aggtc 2 agtg 2 aggc 3 etc.I want to extract the column values of symblos that is aggtc,agtg,aggc and so on how is this possible.please give me a solution.

回答 (1 件)

Stalin Samuel
Stalin Samuel 2017 年 6 月 11 日
Let us assume that you have the table like this
table_name =
[ aggtc, 2]
[ agtg, 2]
[ aggc, 3]
then column values of symblos can be extracted by
table_name(:,1)//gives you the below result


Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索


Community Treasure Hunt

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

Start Hunting!

Translated by