how to create popup menu for geometric optic simulation?
2 views (last 30 days)
Show older comments
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;
0 Comments
Answers (1)
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.
You might also look at this MAGIC framework: http://www.mathworks.com/matlabcentral/fileexchange/24224-magic-matlab-generic-imaging-component
0 Comments
See Also
Categories
Find more on Optics 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!