Can't append two large matrices due to limit in Matlab

1 Ansicht (letzte 30 Tage)
farzad
farzad am 9 Jul. 2020
Kommentiert: Fangjun Jiang am 13 Jul. 2020
Hello
I need to append two time series to eachother, one after the other one, but one is 875520x1 double and the other is 787456x1 double.
so after trying to concatenate, I still have a 875520x1 double. is there a slution to this ?
my code :
resol is the time series resolution
if fn==1
motiontot=[];
for m=1:mu
if m==1
Ttot = t(:).';
Tsize=numel(Ttot);
else
Ttot= [Ttot, t(:).'+Ttot(Tsize)+resol];
Tsize=numel(Ttot);
end
end
else
for m=1:mu
if m==1
Ttot= [Ttot, t(:).'+Ttot(Tsize)+resol];
Tsize=numel(Ttot);
else
Ttot= [Ttot, t(:).'+Ttot(Tsize)+resol];
Tsize=numel(Ttot);
end
end
end
  6 Kommentare
Bjorn Gustavsson
Bjorn Gustavsson am 9 Jul. 2020
Have you checked your algorithm with a smaller subset of your data to verify that it does what you want?
farzad
farzad am 9 Jul. 2020
Yes it does. Only now that the data are big I have problem

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Fangjun Jiang
Fangjun Jiang am 9 Jul. 2020
  3 Kommentare
farzad
farzad am 13 Jul. 2020
shall you please make an example for my case?
Fangjun Jiang
Fangjun Jiang am 13 Jul. 2020
Follow the link, there are videos and examples.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by