input_v=[27 43 55 95 42 98 31]%your program should output the following messages:
>>The number of odd elements is 5.>>The number of even elements is 2.N=128;% is the length of the vector is assumed to be 128.
input_v =ceil(rand(1,N)*100);%%%I TRY MANY WAYS BOT IS NOT WORKING!!!!! help please!!!
MATLAB: Given a vector containing N integers, write an M-flies to calculate how many elements in this vector are odd and how many are even. example if the given vector is :
please help
Best Answer