- A more reliable way to move data around would be to read the data directly from the Excel spreadsheet using xlsread.
- The chowlin function is not an inbuilt function, it has been written by a third-party. Either you can obtain this yourself from someone, or you can search for it on various online repositories. A good place to find third-party MTALAB code is MATLAB's own File Exchange. You can search for chowline there. Then you will need to download it and save it on the MATLAB search path.
- Third-party code is best supported by the code author, so please contact them if you have any questions. Hopefully they have provided complete working examples too!
Need help with Matlab programming
1 回表示 (過去 30 日間)
古いコメントを表示
Hello!
I'm an undergraduate student of Economics and am new to programming in Matlab in which I have to perform temporal disaggregation (convert low frequency data to high frequency) using the "Chow-Lin procedure".
I have found information on Chow-Lin on the Eurostat web page(pages 16 and 17):http://www.uni-mannheim.de/edz/pdf/eurostat/05/KS-DT-05-004-EN.pdf
The syntax is: res=chowlin(Y,x,ta,s,type)
Here is what I have managed to write so far (the vectors x and Y were copied from an Excel document):
x=[89.2000000000000;95.4000000000000;105.500000000000;99.8000000000000;110.400000000000;105.800000000000;109.500000000000;105.700000000000;109.400000000000;112.400000000000;111.400000000000;108.200000000000;97.1000000000000;101.300000000000;115.800000000000;108.900000000000;118;109.400000000000;117.300000000000;107.300000000000;110;116.900000000000;115.100000000000;107.800000000000;102.600000000000;108.800000000000;114;115.700000000000;114.100000000000;116.500000000000;119.400000000000;102;113.800000000000;117.200000000000;111.400000000000;105.500000000000;88;95.2000000000000;106.500000000000;107.500000000000;105.700000000000;100.400000000000;108.600000000000;93.5000000000000;102.900000000000;107.200000000000;101.900000000000;99.4000000000000;88;93.9000000000000;106.300000000000;101.500000000000;103.700000000000;98;105.100000000000;94.3000000000000;106.100000000000;100.800000000000;102.100000000000;100.300000000000;83.4000000000000;91.4000000000000;103;101.700000000000;104.800000000000;99.7000000000000;104.400000000000;90.1000000000000;103.600000000000;102.900000000000;101.800000000000;98.5000000000000;80.5000000000000;88.9000000000000;93.5000000000000;92.2000000000000;100.900000000000;92.8000000000000;100.200000000000;92.1000000000000;92.7000000000000;98.4000000000000;97.4000000000000;90.2000000000000;84.6000000000000;86.3000000000000;94.2000000000000;93.9000000000000;95.5000000000000;91.3000000000000;97.6000000000000;86.1000000000000;90.4000000000000;95.1000000000000;95.2000000000000;89;85.2000000000000;86.7000000000000;94.9000000000000;94.5000000000000;95.3000000000000;89.8000000000000;98.9000000000000;80.8000000000000;95.4000000000000;97.7000000000000;97.8000000000000;95.2000000000000];
Y=[66717.2054519922;73555.8556407072;80387.7354756599;73776.1932867567;73568.2226868528;80931.4658582527;87422.2226658697;80387.7284426743;80204.1077788367;87918.4262168586;94563.3051390650;84999.1626918795;76765.4265502817;83853.2540722711;88128.9922583043;82218.0773839729;75264.4048595781;81794.0205566458;88461.0780361331;82521.0167814730;76129.8232956418;83193.9397062192;90074.2673564622;83188.9473958569;75800.2856784779;82135.4343913346;89509.4168336043;83010.8252316233;75998.8711258359;82864.6410314047;89376.2478413685;81895.7052237878;75116.3041806252;81981.7668448407;89431.2658637777;82397.4239030707];
ta=1;
s=3;
type=1.
Since I'm stuck and do not know how to attain the final result, I would be grateful if You could make it work. Thank You in advance!
0 件のコメント
回答 (1 件)
Stephen23
2015 年 4 月 1 日
編集済み: Stephen23
2015 年 4 月 2 日
Some tips:
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Search Path についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!