timeseries superposition given matrix and weights

I have a design matrix as follows: G(:,1)=ones(N,1); G(:,2)=linspace(-1,1,N); G(:,3)=sin(linspace(-10*pi,10*pi,N)); I set N =1000 and I want to know how do I to generate a time series that is a linear superposition of G with weights, say .1, .3, .6. ?

답변 (1개)

per isakson
per isakson 2013년 4월 18일
편집: per isakson 2013년 4월 18일

0 개 추천

Did you try
S = 0.1*G(:,1) + 0.3*G(:,2) + 0.6*G(:,3);
?

카테고리

도움말 센터File Exchange에서 Time Series에 대해 자세히 알아보기

질문:

2013년 4월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by