What can i use instead of toeplitz in Matlab in order to find the mean value of subarray? -


i have array (1,8760) represents hourly loads. loads same each year , wan perform calculations 20 years. tried use repmat, toeplitz , trill in order have matrix latest load each time. main objective calculate moving average using geometricall scheme calculate each f in code below. problem cant use toeplitz such big array. there other way?

q=rand(1,8760); qb=repmat(q,1,20); qg=toeplitz(qb); qc=tril(qg); f49=mean(qc(50:175200,49:50),2); f50=mean(qc(54:175200,51:54),2); f51=mean(qb(62:175200,55:62),2); f52=mean(qb(78:175200,63:78),2); f53=mean(qb(110:175200,79:110),2); f54=mean(qb(174:175200,111:174),2); f55=mean(qb(302:175200,175:302),2); f56=mean(qb(558:175200,303:558),2); f57=mean(qb(1070:175200,559:1070),2); f58=mean(qb(2094:175200,1071:2094),2); f59=mean(qb(4142:175200,2095:4142),2); f60=mean(qb(8238:175200,4143:8238),2); f61=mean(qb(16430:175200,8239:16430),2); f62=mean(qb(32814:175200,16431:32814),2); f63=mean(qb(65582:175200,32815:65582),2); f64=mean(qb(131118:175200,65583:131118),2); 


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -