How to convert two arrays into a table?

81 ビュー (過去 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 Center および File ExchangeData Type Conversion についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by