Community Profile

photo

Matt Smith


Last seen: 3ヶ月 前
2 2021 年以降の合計貢献数

Matt Smith's バッジ

  • Thankful Level 1

詳細を表示...

貢献した分野
表示方法

質問


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

3ヶ月 前 | 2 件の回答 | 0

2

回答

質問


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

3ヶ月 前 | 1 件の回答 | 0

1

回答