Column with constant value

8 vues (au cours des 30 derniers jours)
Celina Brinkmann
Celina Brinkmann le 9 Oct 2021
Hi,
I have to create a new column in my table (392x 7).
Every row of that new column has to contain the value 2. How can I create a new column in my table with the constant value 2?
I am new with Matlab and would appreciate any help!

Réponses (1)

Cris LaPierre
Cris LaPierre le 9 Oct 2021
Simple assignment. See how to access data in a table, as well as ch 4 of MATLAB Onramp (creating vectors).
  1 commentaire
Celina Brinkmann
Celina Brinkmann le 10 Oct 2021
Thank you!

Connectez-vous pour commenter.

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