If you just need a quick way for the user to enter three numbers for y and then plot against the fixed x = [0 0.02 0.05], you can use “inputdlg” to prompt for values and then plot them as in the below code:
X = [0 0.02 0.05];
answ = inputdlg({'Y(1):','Y(2):','Y(3):'}, 'Enter Y values', 1, {'0','0','0'});
When you run this, MATLAB will show a dialog with three boxes for the user to enter values of “Y(1)”, “Y(2)”, “Y(3)”. After clicking OK, it will plot those points against [0 0.02 0.05].
You can refer to the below attached documentation links for reference:
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.