Feeds
提问
Adding 1 to odd numbers and 2 to even values of a matrix in an m file in MATLAB
I want to add 1 to all the odd numbers and 2 to all of the even numbers of my matrix. I think you can use an if statement and a...
15 years 前 | 2 个回答 | 0
2
个回答提问
adding numbers in an M file
Here is my code. At the end I want it to add up all of the values. a = input('Enter number of days you would like to know th...
15 years 前 | 2 个回答 | 0