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 CenterFile Exchange에서 Programming에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by