Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.
이전 댓글 표시
I am trying to make 5 boxes, one in the center and one in each quadrant of the screen and my script keeps getting stuck here. I checked for matching brackets and parentheses and that I'm not missing any multiplication symbols but I still get the below error every time. Any advice?
Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.
locations=[(center(1)-offsetx-(.5*boxsize),center(y)-offsety-(.5*boxsize),center(1)-offsetx+(.5*boxsize), center(y)-offsety+(.5*boxsize));...
center(1)+offsetx-(.5*boxsize), center(y)-offsety-(.5*boxsize),center(1)+offsetx+(.5*boxsize), center(y)-offsety+(.5*boxsize);...
center(1)-offsetx-(.5*boxsize), center(y)+offsety-(.5*boxsize),center(1)-offsetx+(.5*boxsize), center(y)+offsety+(.5*boxsize);...
center(1)+offsetx-(.5*boxsize), center(y)+offsety-(.5*boxsize),center(1)+offsetx+(.5*boxsize), center(y)+offsety+(.5*boxsize)];
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Entering Commands에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!