photo

Taylie Sargent


Active since 2015

Followers: 0   Following: 0

Statistics

All
MATLAB Answers

3 Questions
0 Answers

Cody

0 Problems
3 Solutions

RANK
109,150
of 301,506

REPUTATION
0

CONTRIBUTIONS
3 Questions
0 Answers

ANSWER ACCEPTANCE
33.33%

VOTES RECEIVED
0

RANK
 of 21,306

REPUTATION
N/A

AVERAGE RATING
0.00

CONTRIBUTIONS
0 Files

DOWNLOADS
0

ALL TIME DOWNLOADS
0

RANK
76,497
of 174,911

CONTRIBUTIONS
0 Problems
3 Solutions

SCORE
40

NUMBER OF BADGES
1

CONTRIBUTIONS
0 Posts

CONTRIBUTIONS
0 Public Channels

AVERAGE RATING

CONTRIBUTIONS
0 Discussions

AVERAGE NO. OF LIKES

  • Thankful Level 1
  • Solver

View badges

Feeds

View by

Question


Modify the following program in order to have the same behavior but using vector operators instead of the while cycle
a = ceil(10*rand(1, 10)); index = 1; while index <= 10 if ceil(a(index)/2) == floor(a(index)/2) index = index + 1; ...

11 years ago | 0 answers | 0

0

answers

Question


Modify the following program in order to get rid of the break statement without affecting the behavior of the program
a = rand(1, 10); index = 1; while index <= size(a, 2) if a(index) > .7 break end; a(index) index...

11 years ago | 1 answer | 0

1

answer

Question


Write a Matlab program which gives the same output as the following program but only contains if statements
a = rand if a < .3 ’a < .3’ elseif a<.6 ’.3 <= a <.6’ else ’a > 6’ end;

11 years ago | 0 answers | 0

0

answers