Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

optimize the number of cameras

2 Ansichten (letzte 30 Tage)
Ayda
Ayda am 7 Mai 2011
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by