フィルターのクリア

Create new varaible (column) based on data in same row from multiple varaiables.

3 ビュー (過去 30 日間)
Joe Opdenaker
Joe Opdenaker 2022 年 10 月 17 日
コメント済み: Nikhil 2022 年 10 月 24 日
I have a matrix of data [ trial, block, IV1, IV2, IV3, DV ]. I want to create a new variable based on the different levels of IVs 1-3 for multiple subjects.
n: 6
trials: 384
blocks: 8
IV1: 3 levels
IV2: 2 levels
IV3: 2 levels
new variables wold have 12 conditions.
  2 件のコメント
Rik
Rik 2022 年 10 月 17 日
How would your new variable look? What have you tried to create it?
Nikhil
Nikhil 2022 年 10 月 24 日
As 3,4,5 columns are your IV values, you can create a new column using your data.
If your table name is temp. You can do it like
temp(1,7) = temp(1,3) + temp(1,4) * temp(1,5) (7 here indicates new column)
That will create a new column in the table and fill it using your desired value.

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

回答 (0 件)

カテゴリ

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

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by