Appending a cell in for loop and accesing

4 ビュー (過去 30 日間)
Chandra Sekhar Kommineni
Chandra Sekhar Kommineni 2022 年 5 月 30 日
Hello sir/Madam,
I was trying appending to a cell, Here my data is 1x11 cells. each cell is m*n size.(my data file came from several '.txt' files)
my output of LVcum is different length, I'm getting error because my data file is different length.
for i=1:numel(data)
clear LDV1_mps
LV1_mps= table2array(data{1,i}(:,4));
LVcum{1,i}= cumsum(double(LV1_mps));
end
I'm getting following error,
Unable to perform assignment because the size of the left side is 58569-by-1 and the size of the right side is 56558-by-1.
I know whats problem is, but I'm not sure how to circumvent this? Can someone help me with this?
Thank you in advance,
  2 件のコメント
Chandra Sekhar Kommineni
Chandra Sekhar Kommineni 2022 年 5 月 30 日
my data file is too big to attach. It was almost 10 MB, coudn't attach and also I can't share that file. Below is sample of my data cell

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

回答 (0 件)

カテゴリ

Find more on Function Creation in Help Center and File Exchange

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by