nma 文字列を含むテキスト ファイルを読み込もうとしています。しかし、私は得る
??? Attempted to access y(1); index out of bounds because numel(Longitude)=0.
Error in ==> filter at 16
Loc(:,i)=coordinates(x(i),y(i))';
フィルター.m
clear all
A=textread('xxx\x.txt','%s','headerlines',1);
for i=1:30;
n=2*i-1;
A(i)=A(n);
end
b=A(1:30,:);
c=char(b);
x=c(:,17:24);
y=c(:,28:36);
なぜそれが間違っているのか理解できませんか?