필터 지우기
필터 지우기

No error no output while I run the code

조회 수: 1 (최근 30일)
Jeeban
Jeeban 2024년 2월 1일
댓글: Torsten 2024년 2월 1일
%%Diffractive axicon%%
clear;
%Clear all memory
% Defining Grating Parameters
N=500; %Define Matrix sizes
A=ones(N,N); %Define Matrices by assigning 1 to all pixels r=ones(N,N);
P=50;%Define the period of the grating
FFr=0.5;%Define fill factor for radial periodicity
% Constructing the grating
x=1:N;
y=1:N;
del=5;
[X,Y]=meshgrid(x*del,y*del);
r=sqrt((X-N/2*del).*(X-N/2*del)+(Y-N/2*del).*(Y-N/ 2*del));
A(rem(r,P)<P/2)=exp(1i*pi);
A(r>N/2-2)=0;
%Observing the grating output in the far-field
%See appendix for function definition
%norm_output p(A,N)
No error no output while i run the code
Does anyone have any advice? Any form of assistance will be appreciated. Thank you.

답변 (1개)

Torsten
Torsten 2024년 2월 1일
이동: Torsten 2024년 2월 1일
What do you expect as "output" ?
If you remove the ; behind the lines, you can see the values of the variables that are computed therein.
  댓글 수: 2
Jeeban
Jeeban 2024년 2월 1일
design of a diffractive axicon.
Torsten
Torsten 2024년 2월 1일
I don't see a variable design_of_a_diffractive_axicon that you could output.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Signal Radiation and Collection에 대해 자세히 알아보기

태그

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by