Community Profile

# omar th

Last seen: Today Attivo dal 2019

#### Content Feed

Visto da

Domanda

How can I randomly excuted for loops inside MAIN FOR LOOP instead of run them in ordered ?
I want to select one of these for loops randmly to excute them NOT in ordered from loop 1 to loop 2 to Loop 3. for example in th...

7 giorni fa | 3 risposte | 0

### 3

risposte

Domanda

How can I split the excuation of multiple for loops ?
If I have two for loops each of them has index values =5 and these loops inside let say outer for loop as illustrated in the cod...

14 giorni fa | 1 risposta | 0

### 1

risposta

Domanda

How can repeat the for loop ?
I deployed an object, this object moves from point to point after testing all direction via inner loop, that object chooses the ...

15 giorni fa | 0 risposte | 0

### 0

risposte

Domanda

How can I replace the position of moving object indexed of outer for loop, and let that object indexed by the inner for loop in the next iterations ?
I deployed an object, this object moves from point to point after testing all direction via inner loop, that object chooses the ...

19 giorni fa | 0 risposte | 0

### 0

risposte

Domanda

How can I let random point to START from the selected location in each iteration in FOR LOOP ?
The code below deploy random point and make it move in 5 directions. So, after excuting the first loop, the second loop will sel...

circa un mese fa | 0 risposte | 0

### 0

risposte

Domanda

How can I make the random point moves based on locations ?
Below there is a point randomly deployed, its moved based on the angles which leads to generate or deply that point in 5 locatio...

circa un mese fa | 1 risposta | 0

### 1

risposta

Domanda

how can we measure X value inside for loop ?
According to my code, the object that located at position A [-50; 50], I want to move it from position A to position B and le...

circa 2 mesi fa | 1 risposta | 0

### 1

risposta

Domanda

How can we move an object from A to B and then return it to the same psition which is A ?
if we move the object below from position A (-50,50) to position B. how can we make return to A position again ?? thanks in ad...

circa 2 mesi fa | 1 risposta | 0

### 1

risposta

Domanda

How can I compare among three matrices ?
If I have 3 matrices for example A = [10;26;30]; B = [12;25;35]; C = [15;29;9]; How can I compare among them to find ea...

3 mesi fa | 1 risposta | 0

### 1

risposta

Domanda

How can I make a random deployed point move to new position and return to the same position ?
if I have random point this point move in the following way OldPosition = let say (0,0) v=8mps AngleOption = [-14.3239 -7.162...

4 mesi fa | 0 risposte | 0

### 0

risposte

Domanda

can I estimate or predict a path for random point, given its position,its angle,its velocity ?
if I deployed a point randomly, so when I want to move it its adding the displacement to the position as a result we will get th...

4 mesi fa | 0 risposte | 0

### 0

risposte

Risposto
how can I plot a trajectory of moving point ?
Thank you so much

4 mesi fa | 0

Domanda

how can I plot a trajectory of moving point ?
if I have random MOVING point, can I plot its trajectory as a line ? for example when this point move from A to B, so I want to...

4 mesi fa | 2 risposte | 0

### 2

risposte

Domanda

Can I copy a figure during runing ?
I want to copy a figure during running the code But I stopped the running temporary and I want to copy the figure ,, so can I ...

6 mesi fa | 1 risposta | 0

### 1

risposta

Domanda

Can I make addpoints function show me more than one curve in ONE figure ?

6 mesi fa | 1 risposta | 0

### 1

risposta

Domanda

second expression and second statement doesn't excuted in else if ?
why the second condition and second statments don't take into account (doeasn't excuted ) ? when I excuted the code only the f...

6 mesi fa | 1 risposta | 0

### 1

risposta

Domanda

Why does data deleted from the workspace after execution the code ?
If I have the below code, why the data are erased from the workspace after finishing the excution of the code ? function some...

6 mesi fa | 1 risposta | 0

### 1

risposta

Domanda

plot what is calculated inside REPEATED for loop as one curve in one figure ?
can I plot x(i) outside the while and for loops ? which means I want to display one figure and one curve show me x value corresp...

6 mesi fa | 0 risposte | 0

### 0

risposte

Domanda

how can I find the max value out of iterative for loop ?
here, the problem is when, for loop iterate itself let's say 5 times, the first maxvalue from is 9, the second is 3, the third i...

6 mesi fa | 1 risposta | 0

### 1

risposta

Domanda

If for loop repeated itself many times, can I plot what calculated inside for loop in ONE CURVE ?
I tried to plot " x " via putting the plot inside for loop I got the plot of " x " from 1 : 20, But when the for loop repeated ...

6 mesi fa | 1 risposta | 0

### 1

risposta

Domanda

how can we use max function inside while loop ?
My question, can we choose the maximimum value out of the maxvalue as explained below the first maxvalue 4 the second maxvalue ...

6 mesi fa | 1 risposta | 0

### 1

risposta

Domanda

How can I find the max value from many max values inside the " WHILE LOOP " ?
if we run the code below we will get the maxpower in each round of "for loop" means the for loop starts from -28.64 up to +28.64...

7 mesi fa | 1 risposta | 0

### 1

risposta

Domanda

which loop should I use (while loop or for loop) to find the max power for all steps from the begining to the last step for random points ?
first, below I deployed two random points. second i measured the power in each moving step. third I measured the max power in ...

7 mesi fa | 0 risposte | 0

### 0

risposte

Domanda

how can I choose values from a vector ascendingly and concequently ?
X = [-28.6479 -27.5 -18.33 -13.75 -11 -9.16 -7.85 -6.87 -6.11 -5.5 5.5 6.11 6.87 7.85 9.16 11 13.75 18.33 27.5 28.6479...

7 mesi fa | 1 risposta | 0

### 1

risposta

Domanda

can I compare the previous state with current state in " While loop " ?
While loop used to move the ponts from position to position in one shot (each one second). now my question can I can iterate the...

8 mesi fa | 1 risposta | 0

### 1

risposta

Risposto
can I excute two plots in single ishghandle ?
Thank you so much

8 mesi fa | 0

Domanda

can I excute two plots in single ishghandle ?
I am using ishghandle in while loop, So I want to animate two plots in single ishghandle, Can I animate hdots(1) and hdots (2) ?...

8 mesi fa | 2 risposte | 0

### 2

risposte

Domanda

During the moving random points, I don't see animation, instead I see re scattering?
Please, would you tell me why the random points is not moving, they just re-scatter in each time step, while I am trying to anim...

8 mesi fa | 1 risposta | 0

### 1

risposta

Domanda

why get this message "Array indices must be positive integers or logical values." i for loop?
I got the error message " Array indices must be positive integers or logical values" I would appreciate any help. thanks in ad...

9 mesi fa | 1 risposta | 0

### 1

risposta

Domanda

How can I export the results to Excel for all loop steps ?
I used this xlswrite('D:\data.xlsx','SINR'); to save the result in excel file but I couldn't save it for all loop steps its alw...

9 mesi fa | 0 risposte | 0

risposte