Column with constant value

6 ビュー (過去 30 日間)
Celina Brinkmann
Celina Brinkmann 2021 年 10 月 9 日
コメント済み: Celina Brinkmann 2021 年 10 月 10 日
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!

回答 (1 件)

Cris LaPierre
Cris LaPierre 2021 年 10 月 9 日
Simple assignment. See how to access data in a table, as well as ch 4 of MATLAB Onramp (creating vectors).
  1 件のコメント
Celina Brinkmann
Celina Brinkmann 2021 年 10 月 10 日
Thank you!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeTables についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by