how to create popup menu for geometric optic simulation?

2 views (last 30 days)
hello everyone, first of all good luck for your research work, i am beginner for matlab. i cant create popup menu for my simulation. how do i do. Please make sure it and please favour? on the image, red line is the aperure diameter.
here is code:
x = [-15, 600000000];
y = [-10, 10];
plot([-20 600000000], [0 0],'-.or');
hold on;
plot([0 0], [-10 10],'-.or');
hold on;
xlabel('Distance')
ylabel('Field of View')
lineLength = 600000000;
angle = 13.4515;
a = 0;
b = 0.375;
a(2) = lineLength * cosd(angle);
b(2) = lineLength * sind(angle);
hold on; % Don't blow away the image.
plot(a, b,'-');
plot(a, -b,'-');
hold on;

Answers (1)

Image Analyst
Image Analyst on 11 Nov 2015
You already have a popup (unlabeled) on there for F/stop. Just do the same thing as you did for that one. I.e., in GUIDE, click on the popup icon and drag one out onto the gui figure.

Community Treasure Hunt

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

Start Hunting!