Column with constant value

조회 수: 8 (최근 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).

카테고리

Help CenterFile Exchange에서 Tables에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by