photo

Taylie Sargent


Actif depuis 2015

Followers: 0   Following: 0

Statistiques

All
MATLAB Answers

3 Questions
0 Réponses

Cody

0 Problèmes
3 Solutions

RANG
262 346
of 301 917

RÉPUTATION
0

CONTRIBUTIONS
3 Questions
0 Réponses

ACCEPTATION DE VOS RÉPONSES
33.33%

VOTES REÇUS
0

RANG
 of 21 460

RÉPUTATION
N/A

CLASSEMENT MOYEN
0.00

CONTRIBUTIONS
0 Fichier

TÉLÉCHARGEMENTS
0

ALL TIME TÉLÉCHARGEMENTS
0

RANG
77 582
of 177 364

CONTRIBUTIONS
0 Problèmes
3 Solutions

SCORE
40

NOMBRE DE BADGES
1

CONTRIBUTIONS
0 Publications

CONTRIBUTIONS
0 Public Chaîne

CLASSEMENT MOYEN

CONTRIBUTIONS
0 Point fort

NOMBRE MOYEN DE LIKES

  • Thankful Level 1
  • Solver

Afficher les badges

Feeds

Afficher par

A résolu


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

environ 11 ans il y a

A résolu


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

environ 11 ans il y a

A résolu


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

environ 11 ans il y a

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

environ 11 ans il y a | 1 réponse | 0

0

réponse

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

environ 11 ans il y a | 1 réponse | 0

1

réponse

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;

environ 11 ans il y a | 1 réponse | 0

0

réponse