How do I display a string from a variable name?
Show older comments
I am having trouble with xlsread. I am having the user input a variable and setting it to Pick. Because the variable i want to display is a string i am having problems with syntax. Here is my code so far. I have tried many different ideas but I cant solve my problem.
Pick = input('Please enter a song ranking from 1 to 50 to see the title artist and album: ')
[~,txt] = SongName(Pick)
Artistname = ArtistName(Pick)
Albumname = AlbumName(Pick)
1 Comment
Rik
on 22 Oct 2017
Accepted Answer
More Answers (0)
Categories
Find more on LaTeX 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!