필터 지우기
필터 지우기

How to convert two arrays into a table?

조회 수: 91 (최근 30일)
Shraddha Joshi
Shraddha Joshi 2016년 5월 3일
댓글: Gabriel Aviles 2020년 5월 18일
Suppose I have two different horizontal arrays of n elements in each array, and I want to put them in a table form with those two arrays as 2 columns in the table. How can I do this in Matlab?

채택된 답변

Vineeth Kartha
Vineeth Kartha 2016년 5월 3일
Hi,
If A and B are the arrays with n elements then you can create a table by the following command:
>> T=table(A,B)
Regards
Vineeth
  댓글 수: 2
Shraddha Joshi
Shraddha Joshi 2016년 5월 4일
Thank You Sir
Gabriel Aviles
Gabriel Aviles 2020년 5월 18일
Hello! can I create a table with two arrays with different dimensions ?

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

추가 답변 (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