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

조회 수: 2 (최근 30일)
farzad
farzad 2020년 7월 9일
댓글: Fangjun Jiang 2020년 7월 13일
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
Bjorn Gustavsson
Bjorn Gustavsson 2020년 7월 9일
Have you checked your algorithm with a smaller subset of your data to verify that it does what you want?
farzad
farzad 2020년 7월 9일
Yes it does. Only now that the data are big I have problem

댓글을 달려면 로그인하십시오.

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2020년 7월 9일
  댓글 수: 3
farzad
farzad 2020년 7월 13일
shall you please make an example for my case?
Fangjun Jiang
Fangjun Jiang 2020년 7월 13일
Follow the link, there are videos and examples.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by