photo

Bushra Atta Khakwani khakwani


Last seen: 2 years ago Active since 2022

Followers: 0   Following: 0

Statistics

MATLAB Answers

2 Questions
0 Answers

RANK
119,558
of 301,151

REPUTATION
0

CONTRIBUTIONS
2 Questions
0 Answers

ANSWER ACCEPTANCE
50.0%

VOTES RECEIVED
0

RANK
 of 21,181

REPUTATION
N/A

AVERAGE RATING
0.00

CONTRIBUTIONS
0 Files

DOWNLOADS
0

ALL TIME DOWNLOADS
0

RANK

of 173,039

CONTRIBUTIONS
0 Problems
0 Solutions

SCORE
0

NUMBER OF BADGES
0

CONTRIBUTIONS
0 Posts

CONTRIBUTIONS
0 Public Channels

AVERAGE RATING

CONTRIBUTIONS
0 Discussions

AVERAGE NO. OF LIKES

  • Thankful Level 1

View badges

Feeds

View by

Question


i want to generate random matrix "P" but every alternate entry in each of the column is repeating
for i = 1:22 for j=1:22 if mod(j,2)==0 P(j,i) = y_random(i); %y coordinate else P(j,i) = x_ran...

3 years ago | 0 answers | 0

0

answers

Question


I want to only run my loop till 22 but it shoud take odd numbers for x_random and even for y_random
while i < 22 if mod(i,2)==0 P(2,i) = y_random(i); %y coordinate else P(1,i) = x_random(i); %x coord...

3 years ago | 1 answer | 0

1

answer