Info

この質問は閉じられています。 編集または回答するには再度開いてください。

I have two cell arrays that are structure fields (data.trial = 32*751) and (data.time = 1*751), generated in Fieldtrip. My aim is to concatenate them using the following pseudo code: Can anyone please provide the code.

1 回表示 (過去 30 日間)
Bubblesjinx
Bubblesjinx 2018 年 6 月 23 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
> initialize matrix data_concat of size channels X total time points
> initialize matrix time_concat of size 1 X total time points
>
> loop over data.trial and data.time (have the same size)
> data_concat(:,appropriate time indices) = data.trial{k}(:,:);
> time_concat(1,appropriate time indices) = data.time{k}(:);
> end loop
>
> data.trial = data_concat;
> data.time = time_concat;

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by