photo

Taylie Sargent


Con actividad desde 2015

Followers: 0   Following: 0

Estadística

All
  • Thankful Level 1
  • Solver

Ver insignias

Feeds

Ver por

Resuelto


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

alrededor de 9 años hace

Resuelto


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

alrededor de 9 años hace

Resuelto


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

alrededor de 9 años hace

Pregunta


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

alrededor de 9 años hace | 0 respuestas | 0

0

respuestas

Pregunta


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

alrededor de 9 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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;

alrededor de 9 años hace | 0 respuestas | 0

0

respuestas