此函数使用标量衍射限制模型为宽场显微镜生成点扩展函数(Stokseth 参考下面的 [1] 和 [3]) ---------------- 输入参数: lambdaEx:激发波长(以 nm 为单位) lambdaEm:发射波长(以 nm 为单位) numAper:物镜的数值Kong径magObj:物镜总放大倍数rindexObj:目标浸没介质的折射率ccdSize:CCD的像素尺寸(在相机平面内) rindex_sp:试样介质的折射率xysize:所需图像的大小(标本视图大小/像素尺寸) nslices:所需的切片数量(深度视图/Z 轴采样) 深度:样品在盖玻片下的深度,以 nm 为单位dxy:CCD 像素大小(以 nm 为单位) dz:光轴 Z 采样或散焦(以 nm 为单位) nor: PSF 上的归一化(默认:无归一化) 0:L-无穷大归一化1:L-1归一化-------------
2023-02-17 17:41:58 86KB matlab
1
S-FUNCTION 概述 .................................................................................................................................... 1 什么是 S-FUNCTION................................................................................................................................ 2 在模型中使用 S-FUNCTION.................................................................................................................... 3 向 S-Function 传递参数..................................................................................................................... 3 何时使用 S-Function.......................................................................................................................... 4 S-FUNCTION 的工作原理........................................................................................................................ 5 Simulink 块的数学关系...................................................................................................................... 5 仿真过程.............................................................................................................................................. 5 S-Function 回调程序.......................................................................................................................... 6 S-FUNCTION 的实现................................................................................................................................ 8 M-文件的 S-Function......................................................................................................................... 8 MEX 文件的 S-function ..................................................................................................................... 8 MEX 文件与 M-文件的 S-function 比较........................................................................................... 9 S-FUNCTION 的概念.............................................................................................................................. 10 直接馈通............................................................................................................................................ 10 动态维矩阵........................................................................................................................................ 10 设置采样时间和偏移量.....................................................................................................................11 S-FUNCTION 范例.................................................................................................................................. 14 M 文件 S-function 范例.................................................................................................................... 15 C S-Function 范例............................................................................................................................ 16 Fortran S-Function 范例.................................................................................................................. 18 C++ S-Function 范例....................................................................................................................... 18 Ada S-Function 范例 ....................................................................................................................... 18 编写 M S-FUNCTION.............................................................................................................................. 19 概述........................................................................................................................................................ 20 S-Function 参数................................................................................................................................ 20 S-Function 的输出............................................................................................................................ 20 定义 S-FUNCTION 块特性..................................................................................................................... 22 处理 S-FUNCTION 参数......................................................................................................................... 22 M 文件的 S-FUNCTION 范例................................................................................................................. 23 范例 1—— 简单的 M 文件 S-Function ........................................................................................... 23 范例 2—— 连续状态 S-Function .................................................................................................... 25 范例 3—— 离散状态 S-Function .................................................................................................... 27 范例 4—— 混合系统 S-Function .................................................................................................... 28 范例 5—— 变步长 S-Function ........................................................................................................ 31 使用 C 语言编写 S-FUNCTION ............................................................................................................. 33 概述........................................................................................................................................................ 34 创建 C MEX S-Function.................................................................................................................. 35 自动生成 S-FUNCTION.......................................................................................................................... 36 配置生成的 S-Function.................................................................................................................... 37 S-Function Builder 如何生成 S-Function...................................................................................... 37 设置 include 路径 ............................................................................................................................. 37 S-FUNCTION BUILDER 的对话窗........................................................................................................... 39 Initialization 选卡.............................................................................................................................. 39 Data Properties 选卡 ....................................................................................................................... 40 Libraries 选卡.................................................................................................................................... 42 Outputs 选卡..................................................................................................................................... 43 Continuous Derivatives 选卡.......................................................................................................... 45 Discrete Update 选卡 ...................................................................................................................... 46 Build Info 选卡 .................................................................................................................................. 47 一个基本的 C MEX S-FUNCTION 范例 ............................................................................................... 48 定义与包含........................................................................................................................................ 49 回调函数的实现................................................................................................................................ 50 Simulink/Real-Time Workshop 接口 ............................................................................................. 51 Building Timestwo 范例................................................................................................................... 51 C S-FUNCTION 模板.............................................................................................................................. 52 S-Function 源文件必需的内容........................................................................................................ 52 SimStruct........................................................................................................................................... 53 编译 C S-Function............................................................................................................................ 53 SIMULINK 如何与 C S-FUNCTION 相互作用 ........................................................................................ 54 进程层面............................................................................................................................................ 54 数据层面............................................................................................................................................ 56 编写回调函数........................................................................................................................................ 59 将 LEVEL 1 C MEX S-FUNCTION 转换到 LEVEL 2 .............................................................................. 60 创建 C++ S-FUNCTION.......................................................................................................................... 63 创建 ADA S-FUNCTION......................................................................................................................... 64 创建 FORTRAN S-FUNCTION.............................................................................................................. 65 实现块特性................................................................................................................................................ 67 对话框参数............................................................................................................................................ 68 可调参数............................................................................................................................................ 68 运行参数................................................................................................................................................ 70 创建运行参数.................................................................................................................................... 70 更新运行参数.................................................................................................................................... 71 创建输入和输出端口............................................................................................................................ 72 创建输入端口.................................................................................................................................... 72 创建输出端口.................................................................................................................................... 73 输入的标量扩展................................................................................................................................ 74 掩码多端口 S-Function.................................................................................................................... 75 自定义数据类型.................................................................................................................................... 76 采样时间................................................................................................................................................ 77 基于块的采样时间............................................................................................................................ 77 指定基于端口的采样时间................................................................................................................ 79 基于块与基于端口的混合采样时间 ................................................................................................ 81 多速率 S-Function 块....................................................................................................................... 82 多速率 S-Function 块的同步........................................................................................................... 83 工作向量................................................................................................................................................ 84 工作向量与过零检测........................................................................................................................ 85 包括指针工作向量的范例................................................................................................................ 85 内存分配............................................................................................................................................ 86 FUNCTION-CALL 子系统........................................................................................................................ 87 错误处理................................................................................................................................................ 89 防超程代码........................................................................................................................................ 89 SsSetErrorStatus 的终止条件 ........................................................................................................ 90 数组边界检查.................................................................................................................................... 90 S-FUNCTION 范例.................................................................................................................................. 91 连续状态的 S-Function 范例........................................................................................................... 92 离散状态的 S-Function 范例........................................................................................................... 93 混合系统的 S-Function 范例........................................................................................................... 93 变步长的 S-Function 范例............................................................................................................... 94 过零检测的 S-Function 范例........................................................................................................... 94 时变连续传递函数的 S-Function 范例........................................................................................... 94
2023-02-15 20:50:51 1.03MB matlab s-function
1
主要介绍了C++ 11 std::function和std::bind使用详解,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
2023-02-10 16:11:30 81KB C++ 11 std::function std::bind
1
/* 文件:sfun_joystick.c * 说明:sfun_joystick.c 是一个 S-Function(在 S-Function 块中使用) * 将操纵杆输出读入 simulink 模型。 这* S-function 仅适用于 windows 计算机,但应该很容易* 移植到其他操作系统。 * * 输出:1. 当前 X 坐标。 * 2. 当前 Y 坐标。 * 3. 当前 Z 坐标。 * 4. 按下第一个操纵杆按钮。 * 5. 按下第二个操纵杆按钮。 * 6. 按下第三个操纵杆按钮。 * 7. 按下第四个操纵杆按钮。 * * 输入:操纵杆 ID。 通常为“0”。 * * 用法:首先从 Matlab 命令窗口编译: * mex sfun_joystick.c -lWinmm * 可使用名为 joystickDemo.slx (R2013b) 的演示模型。 * * 作者:Per Hil
2023-02-09 14:00:18 16KB matlab
1
赛元的资源,SOC文件,
2022-12-01 14:27:10 37KB soc
1
GBD的出处论文,看到好多人10积分下载,真的奸商啊。这里直接最低积分分享
2022-12-01 12:55:38 2MB 机器学习 数据挖掘 人工智能 论文
1
默认情况下MATLAB/Simulink是超实时仿真,而此S-函数用于实现Simulink实时仿真精确度维持在ms级;用户也可在此基础上添加自己的内容,进一步增加实时精确度。
2022-11-25 20:33:00 1KB MATLAB Simulink S函数 S-Function
1
此论文 Resilience function uncovers the critical,ppt 动态讲解
2022-11-19 14:25:26 3.13MB 论文讲解
SAP 为 function 创建 web services,以便于wdsll连接
2022-11-09 19:19:06 555KB abap
1
罚函数法,包括整个实现流程,相关的MATLAB代码
2022-11-08 10:25:39 4KB maysm7 penalty penalty_method 罚函数
1