Converting array to column matrix

4 vues (au cours des 30 derniers jours)
Amy Topaz
Amy Topaz le 8 Mar 2022
Commenté : Amy Topaz le 8 Mar 2022
How can we convert the below array (50*50) into a column array which only has the first column (50*1)

Réponse acceptée

Arif Hoq
Arif Hoq le 8 Mar 2022
Modifié(e) : Arif Hoq le 8 Mar 2022
use colon(:). each variable will be forced to be a column vector
col_vector=Eflevel(:)
if you want extract first 50 data(50*1), then
output=col_vector(1:50,1)
  3 commentaires
Arif Hoq
Arif Hoq le 8 Mar 2022
Modifié(e) : Arif Hoq le 8 Mar 2022
do you want first 50 rows ? please attach your data. or try
output2=Eflevel(1:50,1)
Amy Topaz
Amy Topaz le 8 Mar 2022
Thank you

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by