Ayda
Followers: 0 Following: 0
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
Statistiques
RANG
151 669
of 295 569
RÉPUTATION
0
CONTRIBUTIONS
16 Questions
1 Réponse
ACCEPTATION DE VOS RÉPONSES
31.25%
VOTES REÇUS
0
RANG
of 20 247
RÉPUTATION
N/A
CLASSEMENT MOYEN
0.00
CONTRIBUTIONS
0 Fichier
TÉLÉCHARGEMENTS
0
ALL TIME TÉLÉCHARGEMENTS
0
RANG
of 154 105
CONTRIBUTIONS
0 Problèmes
0 Solutions
SCORE
0
NOMBRE DE BADGES
0
CONTRIBUTIONS
0 Publications
CONTRIBUTIONS
0 Public Chaîne
CLASSEMENT MOYEN
CONTRIBUTIONS
0 Point fort
NOMBRE MOYEN DE LIKES
Feeds
Question
round robin Loop.... help plz
Good morning\evening ppl =) i wrote a code for round robin algorithm i had a small problem in the loop and i don't know how ...
plus de 12 ans il y a | 2 réponses | 0
2
réponsesQuestion
For loop
Good evening\morning i want to get the same result of the ascending method from the for loop. I have to use the for loop bec...
plus de 12 ans il y a | 1 réponse | 0
1
réponseQuestion
round robin
Good Morning\evening i have to write a code for round robin(example 5 processes) i have number of processes and each process h...
plus de 12 ans il y a | 1 réponse | 0
1
réponseQuestion
FCFS code
Good Morning\ Evening I have number of processes and each process has its arrival time the question require to simulate pro...
plus de 12 ans il y a | 2 réponses | 0
2
réponsesQuestion
Result in complex
Good morning/evening I wrote this code but the result was in complex form Can any one help to convert the result into real nu...
presque 13 ans il y a | 1 réponse | 0
0
réponseQuestion
link between m files
Good evening\morning How can I do a link between multi m.files I have a main code that will call the other m files depend...
presque 13 ans il y a | 2 réponses | 0
2
réponsesQuestion
print in a loop
Good morning\evening how can i print p[1], p[2]... p[n] using for loop I couldn't print using for i=1:3 p[i] ...
presque 13 ans il y a | 2 réponses | 0
2
réponsesQuestion
Camera covered L-shape area
Good evening\morning I work on a project that finds the optimum location of cameras with minimizing the number of cameras. ...
presque 13 ans il y a | 1 réponse | 0
1
réponseQuestion
print to output file
Good evening\morning I wrote a code that will give me a root for a function using Bisection Method and False Position Met...
environ 13 ans il y a | 1 réponse | 0
0
réponseQuestion
finding root using false position method
Good evening\morning I try to write a code that calculate the root of a nonlinear function using False Position Method, bu...
environ 13 ans il y a | 5 réponses | 0
5
réponsesQuestion
error when reading from xls sheet
Good evening\morning I have a system of equations and i expressed them in matrix form R=[ R(3)+R(5)+R(8) , -R(5) , 0 , -R...
environ 13 ans il y a | 1 réponse | 0
1
réponseQuestion
print a matrix in output file
Good morning\evening I tried to print a result matrix R in an output file. fprintf(fid,'%.3f\t\n %.3f\t\n %.3f\t\n',R); Ac...
environ 13 ans il y a | 1 réponse | 0
1
réponseQuestion
save matrixs in different names
Good morning\evening I have written this code that gave me 30 [1*30] matrix I try to save each matrix [1*30] in different na...
environ 13 ans il y a | 1 réponse | 0
1
réponseQuestion
Erron in reshaping a matrix
Good morning\evening I had an error when i reshape a matrix when i try to reshape this matrix from (6*5) into (1*30) C = ...
environ 13 ans il y a | 1 réponse | 0
1
réponsecombine 30 (1*30) matrix to one matrix (30*30)
Thanks Mr.Walter
environ 13 ans il y a | 0
Question
combine 30 (1*30) matrix to one matrix (30*30)
Good evening\morning I've 30 (1*30) matrix and would to combine them in one matrix (30*30) Is there a command or should I ...
environ 13 ans il y a | 2 réponses | 0
2
réponsesQuestion
optimize the number of cameras
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...
plus de 13 ans il y a | 1 réponse | 0