can I use keyboard inputs to generate plots?

3 views (last 30 days)
I have a variety of plots available (more exactly, a cell with 45 matrices in it). If I put p=14 (a value <45) and then the plotting commands, it works. Now, can I input p from keyboard? (stop the program, ask for input and based on that plot the corresponding plot)

Accepted Answer

Walter Roberson
Walter Roberson on 19 Apr 2014
p = input('What p do you want?');

More Answers (0)

Categories

Find more on Desktop in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!