MATLAB Answers

1

Extracting the column value of a table

Reshma Ravi 님이 질문을 제출함. 11 Jun 2017
최근 활동 Stalin Samuel 님이 답변함. 11 Jun 2017
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.

  댓글 수: 0

로그인 to comment.

태그

답변 수: 1

Answer by Stalin Samuel on 11 Jun 2017

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
aggtc
agtg
aggc

  댓글 수: 0

로그인 to comment.



Translated by