Please someone solve the error of unexpected error at x=D./2f

1 回表示 (過去 30 日間)
Soham Jadhav
Soham Jadhav 2017 年 10 月 23 日
回答済み: Cedric 2017 年 10 月 24 日
clear all;
close all;
clc;
n=1.49;
D=0.1:.02:0.3;
f=0.2;
x=D./2f;
NA=n*sin(atan(x));
plot(D,NA);
xlabel('Diameter of lens');
ylabel('Numerical Aperture');
title('Variation in numerical aperture with increase in diameter')

回答 (1 件)

Cedric
Cedric 2017 年 10 月 24 日
What is 2f? Is this what you are trying to compute?
x = D ./ (2*f) ;

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by