Clarification: For b, with "a string" it seems you accept both string arrays and char arrays. For c, with "matrix" it seems you require a numeric array — this is different from MATLAB's definition of a "matrix".
Thank you David Verrelli. I have modified the problem description to try to reflect that.
Return the 3n+1 sequence for n
6216 Solvers
1270 Solvers
1316 Solvers
313 Solvers
Logarithm with base other than 'e'
46 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!