Unexpected MATLAB operator error (struct array issue)

Error is assigned to ">> names":
doc mapshow
cd mapfiles
dir ('*.shp')
names = dir('*.shp');
>> names
names = 
  117×1 struct array with fields:
    name
    folder
    date
    bytes
    isdir
    datenum
>> for n = 1:length(names)
S = shaperead(names(n).name);
mapshow(S)
title(names(n).name)
drawnow
pause
[EDITED, Jan, code formatted]

댓글 수: 1

Jan
Jan 2018년 3월 6일
편집: Jan 2018년 3월 6일
Where do you get which error message? Why do you assume that this is a "struct array issue"?

댓글을 달려면 로그인하십시오.

답변 (1개)

Jan
Jan 2018년 3월 6일

0 개 추천

Did you include the ">>" in the code of the function or script? If so, remove this, because this is the prompt in the command window, not a part of the code.

카테고리

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

태그

질문:

2018년 3월 6일

편집:

Jan
2018년 3월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by