Why does isfield return unexpected results for a FINTS object?
Show older comments
Creating a FINTS object and then using the isfield method to check for the existence of the field 'times' returns unexpected results. The following code illustrates the behavior:
data = [1:6]';
dates = [today:today+5]';
tsobjkt = fints(dates, data);
fieldnames(tsobjkt)
ans =
'desc'
'freq'
'dates'
'series1'
isfield(tsobjkt,'times')
ans =
1
Accepted Answer
More Answers (0)
Categories
Find more on Manage Products 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!