matlab请教两个​矩阵同时按列(一其中​一个矩阵为主)排列顺​序。

clear
close
clc
DatName = '13.0-h30T1.9H8-2';%the name of mat
a = load([DatName '.mat']);
ax_all = a.Data.Profiles_VelX;
t = a.Data.Profiles_TimeStamp;
scrsz = get(0,'Screensize');
figure1 = figure('Position',[0 30 scrsz(3) scrsz(4)-95]);
plot(ax_all);
title('原始数据X方向')
xlabel('Time (s)')
ylabel('m/s')
st = input('what the point was the first:');
en = input('what the point was the last:');
ax_1 = ax_all(st:en,:);
lengthax_1 = en-st+1;
t_1 = t(st:en);
%% HT
Rex = hilbert(ax_1);
Imx = imag(Rex);
X =Rex+Imx*1i;
r = abs(X);
c = atan2(imag(X),real(X));
这是程序编码,在经过希尔伯特变换后求得,相位幅值图,在对相位矩阵和幅值矩阵进行绘图时发生问题,散点图可以,但是plot不行,想对两个矩阵排顺序,请教这该如何,变换。

Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!