matlab programming language . I need part A how to do it. Graphical interface GU
ID: 3808046 • Letter: M
Question
matlab programming language . I need part A how to do it. Graphical interface GUI
3. Speed Reader (Adapted from http://ni stanford.edu/2015/posera-speed -reader This project requires you to create a program that takes two inputs: o A string of any length. o A number of words per minute. Your program will take the string, break it up into individual words, and display it one word at a time at the desired rate. For instance, "Hello World!" at 500 words per minute would display "Hello" for 3/25ths of a second and then "World!" for 3/25 of a second. You'll be surprised to discover that you can read words that are displayed quite quickly! This project has the following deliverable levels: C: Your project prints words to the command line at the desired rate. While it is printing words, those words are the ONLY thing in the command line. B: Your project prints words to another window besides the command line. A: Your project has a graphical interface that will let a user input a string, select a rate, and press a button to display the words of that string at the desired rate.Explanation / Answer
MATLAB for GUI-
uicontrol('Style','pushbutton', ...
'String','Plot', ...
'Callback','plot(x,y)', ...
'Units','point', ...
'Position',[50 65 75 35])
x = input(prompt)
str = input(prompt,'s')
x = input(prompt) displays the text in prompt and waits for the user to input a value and press the Return key.
It will show the string of any length.
Strings are declared using single quotes:
We can display a string in the command window in combination with other text with below given functionality-
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.