Subsref error (Index exceeds matrix dimensions)

function [VarNames] = TimeAlignMatFile(InputFilename,DeltaTime) % option to evaluate variables across longest time range recorded use_full_time_range = 1;
DataStructure = load(InputFilename);
Names = fieldnames(DataStructure);
NoNames = length(Names);
VarNames = (Names(2:NoNames)); % Names(1) is always 'header', so ignore
% Create individual structure for first variable in the MAT file
Part.type = '()';
Part.subs = Names(2);
TempStructure = subsref(DataStructure, Part);
time = TempStructure.time;

답변 (0개)

카테고리

도움말 센터File Exchange에서 Matrix Indexing에 대해 자세히 알아보기

제품

질문:

2018년 1월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by