i have loaded a time-series data (variable of 10000 rows and one column), and for that to estimate a transfer function i am getting the index error, please do help me

sys=tfest(data1,1,0)
Error using tfest (line 113)
Index exceeds the number of array elements (0).

5 Comments

How did you load the tfest variable?
What shows up for size(tfest) ?
If it is stored in a .mat file, use
whos -file FILENAME.mat
to check whether the variable is empty inside the .mat file.
hello
to estimate a transfer function you need both input and output data
with only one of the two this is mission impossible
Please run this segment of debugging code and tell us the result.
OutputData = data1.OutputData;
if isempty(OutputData)
fprintf('Stored OutputData is empty\n');
output_size = 0;
elseif iscell(OutputData)
fprintf('OutputData is cell\n');
output_size = size(OutputData{1});
else
fprintf('OutputData is numeric\n');
output_size = size(OutputData);
end
disp(output_size)

Sign in to comment.

Answers (0)

Categories

Asked:

on 11 Jan 2023

Commented:

on 12 Jan 2023

Community Treasure Hunt

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

Start Hunting!