程序代码:
close all;
clear;
clc;
format compact;
load i_source.mat;
% 提取数据
[m,n] = size(B);
ts = B(1:180,1);
tsx = B(1:180,2:n);
figure;
plot(ts,'LineWidth',2);
title('点信源波达方向随时间的变化规律','FontSize',12);
xlabel('时间','FontSize',12);
ylabel('波达方向','FontSize',12);
grid on;
% % 数据预处理,将原始数据进行归一化
ts = ts';
tsx = tsx';
% mapminmax为matlab自带的映射函数
% 对ts进行归一化
[TS,TSps] = mapminmax(ts,1,2);
% 画出原始上证指数的每日开盘数归一化后的图像
figure;
plot(TS,'LineWidth',2);
title('原始点信源波达方向归一化后随时间变化的图像','FontSize',12);
xlabel('时间','FontSize',12);
ylabel('归一化后的波达方向','FontSize',12);
grid on;
% 对T