使用标量衍射理论和菲涅耳和弗劳恩霍夫衍射的衍射对波动光学进行建模(Matlab代码实现)

           目录

💥1 概述

📚2 运行结果

🎉3 参考文献

👨‍💻4 Matlab代码


💥1 概述

本文使用Matlab对波动光学进行建模。包括使用标量衍射理论和菲涅耳和弗劳恩霍夫衍射的衍射。

📚2 运行结果

 

 

 

 

 

 

🎉3 参考文献

[1]刘全,吴建宏.光栅的标量衍射理论与耦合波理论的分析比较[J].激光杂志,2004(02):31-34.

👨‍💻4 Matlab代码

主函数部分代码:

function X = getframeWithDecorations(f, withDecorations, doDrawnow)
% GETFRAMEWITHDECORATIONS(f) Capture the whole figure including window decorations.
% GETFRAMEWITHDECORATIONS(f, withDecorations) Capture the whole figure, including decorations if the flag is true

% Copyright 1984-2020 The MathWorks, Inc.
    
    if nargin < 2
        withDecorations = true;
    end

    if nargin < 3
       doDrawnow = true;
    end

    % some clients may have done preemptive drawnow on their own
    % avoiding calls here may save a little time 
    if doDrawnow
       drawnow
       drawnow
    end

    if ~isgraphics(f, 'figure')
        error(message('MATLAB:capturescreen:FigureWindowRequired'));
    end

    if matlab.ui.internal.isUIFigure(f)
        cdata = getWebFigureWithDecorations(f, withDecorations);
    else
        cdata = getJavaFrameWithDecorations(f, withDecorations);
    end

    % Need to initialize fields in this order
    X.cdata = cdata;
    X.colormap = [];
end

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值