Azzera filtri
Azzera filtri

How to convert two arrays into a table?

91 visualizzazioni (ultimi 30 giorni)
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?

Risposta accettata

Vineeth Kartha
Vineeth Kartha il 3 Mag 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 Commenti
Gabriel Aviles
Gabriel Aviles il 18 Mag 2020
Hello! can I create a table with two arrays with different dimensions ?

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Tables in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by