Community Profile

photo

Matt Smith


Last seen: alrededor de 3 años hace Con actividad desde 2021

Followers: 0   Following: 0

Estadísticas

  • Thankful Level 1

Ver insignias

Feeds

Ver por

Pregunta


Modifying odd/even numbers of a column vector
How would I go about modifying the odd and even elements of the following vector ? x = [4 5 7 6 5 8 2 1]; So that when run it ...

alrededor de 3 años hace | 2 respuestas | 0

2

respuestas

Pregunta


How do I modify my code to work for odd numbers?
So I have this code that check vector x for odd numbers and adds 5 to each of these. x = [4 5 7 6 5 8 2 1]; x=x+mod(x,2)*5; %F...

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

1

respuesta