photo

Ayda


Attivo dal 2011

Followers: 0   Following: 0

Messaggio

Good morning

i have write this code and it works well
but there is something i do not know how to do it

this is my code
"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 want to do for loop so x and j change from 1 to 15 after i and j reach to (15,15)
Professional Interests: optimize the number of cameras

Ayda's Badge

MATLAB Answers Badge

Tutto
  • Thankful Level 3Thankful Level 3
    20 Jul 2017