Community Profile

photo

omar th


Last seen: 4 Monate vor Aktiv seit 2019

Statistiken

  • Thankful Level 4
  • Thankful Level 2

Abzeichen anzeigen

Content Feed

Anzeigen nach

Frage


How can I choose an element from a vector according to its probability ?
I want to select an angle according to the probability. I executed the code below its show me the only FIRST option (only 10 eve...

10 Monate vor | 1 Antwort | 0

1

Antwort

Frage


Can I execute only one case inside multiple cases inside switch ?
The code below is execution the cases randomly, for example in the first round 3 1 2 in the second round 2 1 3 and so forth. my...

11 Monate vor | 1 Antwort | 0

1

Antwort

Frage


How can I fix a vector value inside for loop when a condition is met ?
I tried below to explain what I want to do...Below I want to stop an object from movement when a condition is met, thats why I f...

11 Monate vor | 1 Antwort | 0

1

Antwort

Frage


How can I reiterate a vector in side for loop when a condition is satisfied ?
I want to reiterate the angle when the condition is met, I tried to explain the question via the code below. I want re-iterate t...

etwa ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


How can I fix value of vector inside for loop ?
how can I fixed the value of " select_angles " in case the condition is satisfied ? I tried to fix it via using repeat element f...

etwa ein Jahr vor | 2 Antworten | 0

2

Antworten

Frage


Can I call index of max function out and before the function ?
Below is an example of my question, can I call the index of max function which is located inside for loop before the the loop ? ...

etwa ein Jahr vor | 2 Antworten | 0

2

Antworten

Frage


Can I run all cases of switch ? if not, is there another way ?
The attached code is running only one of the cases randomly. My question Can I execute all cases in random way, for example run ...

etwa ein Jahr vor | 2 Antworten | 0

2

Antworten

Frage


How can we display a value of function inside for loop seperatley instead of in a form of vector?
when I excuted the code below, " select" show me the options as vector, but I want it show me these options in random way BUT WI...

etwa ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


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...

etwa ein Jahr vor | 4 Antworten | 0

4

Antworten

Frage


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...

etwa ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


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 ...

etwa ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


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 ...

etwa ein Jahr vor | 0 Antworten | 0

0

Antworten

Frage


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...

etwa ein Jahr vor | 0 Antworten | 0

0

Antworten

Frage


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...

etwa ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


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...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


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...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


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...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


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...

mehr als ein Jahr vor | 0 Antworten | 0

0

Antworten

Frage


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...

mehr als ein Jahr vor | 0 Antworten | 0

0

Antworten

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

mehr als ein Jahr vor | 0

Frage


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...

mehr als ein Jahr vor | 2 Antworten | 0

2

Antworten

Frage


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 ...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


Can I make addpoints function show me more than one curve in ONE figure ?
I asked this question https://www.mathworks.com/matlabcentral/answers/1771360-if-for-loop-repeated-itself-many-times-can-i-plot-...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


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...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


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...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


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...

mehr als ein Jahr vor | 0 Antworten | 0

0

Antworten

Frage


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...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


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 ...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


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 ...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


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...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Mehr laden