How to convert two arrays into a table?
79 views (last 30 days)
Show older comments
Shraddha Joshi
on 3 May 2016
Commented: Gabriel Aviles
on 18 May 2020
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?
0 Comments
Accepted Answer
Vineeth Kartha
on 3 May 2016
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 Comments
Gabriel Aviles
on 18 May 2020
Hello! can I create a table with two arrays with different dimensions ?
More Answers (0)
See Also
Categories
Find more on Data Type Conversion in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!