Effacer les filtres
Effacer les filtres

How to convert two arrays into a table?

91 vues (au cours des 30 derniers jours)
Shraddha Joshi
Shraddha Joshi le 3 Mai 2016
Commenté : Gabriel Aviles le 18 Mai 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?

Réponse acceptée

Vineeth Kartha
Vineeth Kartha le 3 Mai 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 commentaires
Shraddha Joshi
Shraddha Joshi le 4 Mai 2016
Thank You Sir
Gabriel Aviles
Gabriel Aviles le 18 Mai 2020
Hello! can I create a table with two arrays with different dimensions ?

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Tables dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by