如何在MATLAB中窗口显示.mat文件?

时间:2014-05-05 16:12:21

标签: matlab window

我有一个带有34069行(条目)的.mat文件列向量,我试图使窗口为5,重叠为1。这是我的代码到目前为止,当我运行它时,我收到一个错误说:

"Maximum recursion limit of 500 reached. Use set(0,'RecursionLimit',N) to change the limit. Be aware that exceeding your available stack space can crash MATLAB and/or your computer."

我该怎么做才能避免此错误?

data = importdata('average_degree_und.mat');

Channels = 3;
samples = 34069;
window = 100;
overlap = 000;
delay = 0;      % Samples Delay between compared windows. 

max_delay= window-1
step = window - overlap;
points = floor((samples-window)/step);
matrix = zeros(Channels, Channels, points);

% Verification of step & window validity 
if step > window
    error('The step cannot be greater than the window')
end

0 个答案:

没有答案