create a function that takes a matrix input, that gives output matrix of odd elements
Show older comments
I'm new to Matlab, and trying to learn the basics. I am having a hard time creating a function that allows for any matrix as an input, in which you get an output matrix that is of only the odd elements. I don't have an issue with getting the odd elements from an input matrix, but rather have an issue setting up the function for an input of any matrix values of interest. Could someone give me an example of what this would look like?
Accepted Answer
More Answers (0)
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!