Question: Please do in Matlab and write a comments 4- Write a function returnOddPosNums0 that receives an array of numbers and returns the odd positive numbers

 Please do in Matlab and write a comments 4- Write a
Please do in Matlab and write a comments

4- Write a function returnOddPosNums0 that receives an array of numbers and returns the odd positive numbers and their index in two separate arrays. For example: [odds, idx] returnOddNums([2, 0, 1,7, 6, -91) should return odds [1, 7] idx [3, 4]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!