matlab 学习
Sandy_Sandy_yuan
在校研究生
展开
-
画图-重复命名
[le,le1]=size(state)%% 状态重复命名c={}for j=1:le1% q=sprintf('State-%d',state(j))q=['\pi',num2str(state(j))]c=[c q];end%% 画图figure('OuterPosition',[737 555 770.4 568]);axes('Position',[0.0941798941798942 0.11 0.878306878306878 0.815]);plot(pai,'Lin.原创 2021-11-24 15:18:24 · 241 阅读 · 0 评论 -
matlab 建立ARIMA-GARCH模型
%% Forecast Conditional Mean and Variance Model% Step 1. Load the data and fit a model.load Data_EquityIdxnasdaq = DataTable.NASDAQ;r = price2ret(nasdaq);N = length(r);model = arima('ARLags',1,'Variance',garch(1,1),... 'Distribution',.原创 2021-06-09 16:07:19 · 3758 阅读 · 0 评论