Basic matlab numeric and string manipulations - MATLAB Cody - MATLAB Central

Problem 44623. Basic matlab numeric and string manipulations

Difficulty:Rate

If entered input (n) is numeric , compute its log to the base (n+2) ,

if it is a lower case alphabet, convert it to its numeric ascii value ,

if it is an upper case character, create a string with '!' concatenated to the value 'n' Example: 'A' will become 'A!'

else return the input as is

Solution Stats

50.59% Correct | 49.41% Incorrect
Last Solution submitted on May 10, 2025

Solution Comments

Show comments
Why should you share code?
In a discussion on LInkedin about my recent blog post, Do these...
3
6

Problem Recent Solvers39

Suggested Problems

More from this Author29

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!