Question

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

meer dan 2 jaar ago | 0 answers | 0

Question

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

meer dan 2 jaar ago | 1 answer | 0

Question

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

meer dan 2 jaar ago | 1 answer | 0

Question

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

meer dan 2 jaar ago | 2 answers | 0

Question

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

meer dan 2 jaar ago | 1 answer | 0

Question

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

meer dan 2 jaar ago | 1 answer | 0

Question

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

meer dan 2 jaar ago | 0 answers | 0

Question

If I am runing a code has several iterations, Can I get the time of simulation after running for many minutes ?

Simply, I want after stopping my simulation I want to show me the real time that took it for example, 10 minutes thanks in ad...

meer dan 2 jaar ago | 1 answer | 0

Question

Can I use the vector values as an expression in " If condition" ?

Can I use the vector values as an expression in " if " % Distance as vector D1 = [500 456 789 963 302 423 700 785]; [M, Indx]...

meer dan 2 jaar ago | 1 answer | 0

Question

How can I find the Euclidean distance between moving points?

I deployed number of random points with their speed and displacement, how can I make these point MOVING frequently each second...

meer dan 2 jaar ago | 0 answers | 0

Question

Can I partition a matrix ito several seperated parts ?

can I partition this matrix into 4 parts ? assume this matrix 29X1, A = [2;2;-3;4;5;6;7;-8;9;-6;5;4;-2;1;3;-9;8;7;4;-5;6;3;2;...

meer dan 2 jaar ago | 2 answers | 0

Question

Can I sort each of these group associated random points SEPARATELY for each point ?

Can I sort these group of assigned point seperatly, which means I want to know exactly the group of RED points (as vectors it ...

meer dan 2 jaar ago | 1 answer | 0

Question

How can I let the loop continue when the condition is satisfied ?

I formulated a potential game theory and I want the loop continue when reach Nash equilibrium( or when the condition that I make...

meer dan 2 jaar ago | 1 answer | 0

Question

How can I solve this error "Array indices must be positive integers or logical values." and make a condition to fix it as index?

I want make the condition in the line 40th somthing like ,,,, if mindistD > maxrange^2 and mindistD<maxrangeD2 and then fix it i...

meer dan 2 jaar ago | 1 answer | 0

Question

How to add, multiply and subtract two matrices have different length ?

If I have matrix A =[2 2 1; 1 2 5; 1 2 3], B=[1 2; 1 1], How can I add or subtract these matrices while they have different len...

meer dan 2 jaar ago | 2 answers | 0

Question

Why when I run this code I got this error messege "Index exceeds array bounds." and this "Matrix dimensions must agree." ?

Why, when I run this code I got result of " SINR_Dcell " BUT i get the error messege this time "Index exceeds array bounds." and...

meer dan 2 jaar ago | 1 answer | 0

Question

Is there someone interseting in Non-cooperative Game theory, in MAtlab?

Is there someone guide me to implement multiple Players exact potential game theory ? I assumed No of players are distributed ra...

meer dan 2 jaar ago | 0 answers | 0

Question

How can I consider the number of players, if I want to frmulate game theory in matlab ?

If I want to formulate a game according to game theory, I deployed number of random points, so,Should I consider NumPoints as ...

meer dan 2 jaar ago | 1 answer | 0

Question

If I scattered number of points, can I sort or (determine) the exact location for each random point in matlab ?

if I distribute number of points randomly (NumUEs), so these random points associated with another random points (NumBSs=2; Num...

meer dan 2 jaar ago | 0 answers | 0

Question

Can we assign or associate the random points only that located inside the a specific range ?

Is there a way to assign the RED points which are located within the STARS range (assume STARS have range (as circle) is 100m...

meer dan 2 jaar ago | 1 answer | 0

Question

Does there away to make the drones flying toward the exact positions of users by using Matlab?

Does there away to make the drones flying toward the exact positions of users (users and drones are randomly distributed ), whic...

bijna 3 jaar ago | 0 answers | 0

Question

How can I Associate the users to moving Drones and how to MOVE the Drone toward a specific user in matlab?

How to assign the users (distributed randomly) to the moving drones (also distributed randomly) and can the drone know the pos...

bijna 3 jaar ago | 0 answers | 0

Question

Please, would you tell me if this code is CORRECT or NOT to measure the path loss, and the SNR ?

I just wanted to make sure if this code correct to measure the path loss and SNR specifically to use the euclidean distance be...

bijna 3 jaar ago | 0 answers | 0

Question

Given number of base stations and users , how can I accociate each user to the nearest base station?

I deployed the BSs and Users randomly according to Binomial Point Process, and I assumed to connect each user to nearest BS. So,...

bijna 3 jaar ago | 1 answer | 0

Question

How to move random point on an arc by matlab

I deployed 2 nodes randomly by Binomial point process and I wanted to move them on arc for specific distance then keep...

bijna 3 jaar ago | 1 answer | 0

Question

Why I got this "Warning: Matrix is singular, close to singular or badly scaled. Results may be inaccurate. RCOND = NaN " in this code

ER = 1.0; EO = 8.8541e-12; AA = 1.0; BB = 1.0; D = 1.0; N = 9; NT = 2*N; M = sqrt(N); DX = AA/M; DY = BB/M; DL = DX; ...

ongeveer 5 jaar ago | 0 answers | 0