필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

optimize the number of cameras

조회 수: 2 (최근 30일)
Ayda
Ayda 2011년 5월 7일
마감: MATLAB Answer Bot 2021년 8월 20일
Good morning i have wrote this code to see the covered points if we but the camara in a fixed place function C=OneCamera(x,y) for i=1:15 for j=1:15 x=1 y=1 d=(i-x)^2+(j-y)^2; if d<30 C(i,j)=1;else C(i,j)=0;;end end; C S= C(:)' end
i tried to do for loop so the variable x and y change when i and j reach (15,15) but it gave me errors
plz can you help

답변 (0개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by