Get chain of consecutive characters - MATLAB Cody - MATLAB Central

Problem 44004. Get chain of consecutive characters

Difficulty:Rate

Write a function that will output a chain of consecutive characters, given 2 letters as input. It has to work backwards too. Examples:

>> get_char_list('a', 'f') abcdef >> get_char_list('p', 'q') pq >> get_char_list('x', 't') xwvut

Solution Stats

56.14% Correct | 43.86% Incorrect
Last Solution submitted on Oct 27, 2022

Problem Comments

Solution Comments

Show comments
Registration Now Open for MathWorks AUTOMOTIVE CONFERENCE 2025
...
Hello Community, We're excited to announce that registration is now open for the...

Problem Recent Solvers30

Suggested Problems

Problem Tags

Community Treasure Hunt

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

Start Hunting!
Go to top of page