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
Show older comments
sys=tfest(data1,1,0)
Error using tfest (line 113)
Index exceeds the number of array elements (0).
5 Comments
Walter Roberson
on 11 Jan 2023
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.
Mathieu NOE
on 11 Jan 2023
hello
to estimate a transfer function you need both input and output data
with only one of the two this is mission impossible
Walter Roberson
on 12 Jan 2023
What is class(data1) ?
Yashaswini
on 12 Jan 2023
Walter Roberson
on 12 Jan 2023
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)
Answers (0)
Categories
Find more on Time Series in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!