How can I make a string follow a graph in a Matlab Gui.
Show older comments
For this lab, we are required to input a string, into an edit text box in a matlab gui. This string will then follow the curve of our graph that has been plotted. Each individual letter will be followed the by next letter. So, for example, if I was to input hello into the edit text box, the H would be followed by the E and then the L and so on and so forth.
here is a link to the Lab. I have already done the first part of it.
I would greatly appreciate any help with this lab. I am having trouble with splitting up the word. I am also struggling to make the letters follow the curve I have plotted.
2 Comments
Walter Roberson
on 6 Feb 2013
Show us your code for making the letters follow the curve, and describe more specifically what you see when you use your code and how that differs from what you should have.
Note: I am not going to bother following along with a flash video of a lab to see what you need to do.
Miguel Lastres
on 6 Feb 2013
Edited: Walter Roberson
on 6 Feb 2013
Answers (1)
Walter Roberson
on 6 Feb 2013
0 votes
If you entered the string 'hello' and store that in the variable S, then the first letter is S(1), the second letter is S(2) and so on.
Categories
Find more on Animation 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!