필터 지우기
필터 지우기

Combine two tables together

조회 수: 3 (최근 30일)
Marty Dutch
Marty Dutch 2014년 5월 2일
댓글: Image Analyst 2014년 5월 2일
Dear experts,
I want to combine two seperate tables together so that they form one table.
I have these two tables:
1 1
2 0
3 1
4 1
5 0
6 1
I want to combine then into 1 table like this:
1 1
2 0
3 1
4 1
5 0
6 1
Can somebody help me?
Marty
  댓글 수: 1
Image Analyst
Image Analyst 2014년 5월 2일
We call those kinds of numbers-only items "arrays" or "matrices". "tables" are a particular data type that is sort of in between arrays and cell arrays. Tables are good if you need to mix data types, like columns of numbers along with columns of strings, into a single variable. Look up tables in the help if you have R2013b or later.

댓글을 달려면 로그인하십시오.

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2014년 5월 2일
편집: Azzi Abdelmalek 2014년 5월 2일
a=[1 1;2 0;3 1];
b=[4 1;5 0;6 1];
c=[a;b]

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Tables에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by