最新实例
Space Vector PWM for Three-Phase Inverter-Matlab Development
该模型模拟了空间矢量脉宽调制的三相逆变器。SVPWM思想已从Matlab驱动库中使用。
Matlab
0
2024-11-06
Matlab Code for Spatial-Temporal Pooling Networks-Jointly Attentive Spatial-Temporal Pooling Networks for Video-based Person Re-Identification(ICCV 2017)
This repository provides the Matlab code for Jointly Attentive Spatial-Temporal Pooling Networks for video-based person re-identification as presented in the paper 'Jointly Attentive Spatial-Temporal Pooling Networks for Video-based Person Re-Identification' (ICCV 2017). If you use this code, please cite the following paper:
@inproceedings{shuangjiejointly, title={Jointly Attentive Spatial-Temporal Pooling Networks for Video-based Person Re-Identification}, author={Shuangjie Xu, Yu Cheng, Kang Gu, Yang, Shiyu Chang and Pan Zhou}, booktitle={ICCV}, year={2017} }
Dependencies: The following libraries are required: nn, nnx, optim, cunn, cutorch, image, rnn, and inn. Ensure that you have Nvidia GPU support with CUDA enabled.
Data Preparation: Download and extract the dataset, then navigate to the data/ directory. The dataset is stored under data/iLIDS-VID. Modify and run the script data/computeOpticalFlow.m in Matlab to generate the optical flow features.
Matlab
0
2024-11-06
输入隶属函数参数修正算法_MATLAB智能控制第8章_刘金琨
输入隶属函数参数修正算法为:其中
Matlab
0
2024-11-06
Quantized Gate Resistance Calculation for Switching Time-MATLAB Simulink Example Guide
6.1 Quantized Conduction Gate Resistance
The conduction gate resistance Rg(ON) is selected based on the switching time tsw to achieve the desired switching performance. To calculate the gate resistance, we need to know the power supply voltage VDD (or VBS), the equivalent on-state resistance of the gate driver RDRV(ON), and the switching parameters of the device (Qg, Qgd, and Vgs(th)). The switching time is defined as the time taken to reach the platform voltage, where the total charge Qgd + Qgd is provided to the MOSFET, as shown in Figure 21.The calculation for the gate conduction resistance is as follows:[ Rg(ON) = \text{Function of } VDD, Qg, Qgd, Vgs(th), \text{and } RDRV(ON) ]
### 6.2 Output Voltage SlopeThe conduction gate resistance Rg(ON) also controls the output voltage slope dVOUT/dt. When the output voltage is nonlinear, the large output voltage slope can be approximated as:[ \frac{dVOUT}{dt} = \frac{Ig(avr)}{Cgd(off)} ]Where Cgd(off) represents the Miller capacitance (also defined as Crss in the datasheet).
### 6.3 Quantized Gate Resistance in Off-StateThe quantization of the off-state gate resistance occurs when external actions force rectification when the MOSFET's drain is in the off-state. In this case, the output node's dV/dt induces a parasitic current to flow through Cgd, towards RG(OFF) and RDRV(OFF), as shown in Figure 22.The gate threshold voltage Vgs(th) and the drain-source dV/dt are related in the following equation:[ ISINK \geq \frac{1.5 \times QG}{tSW} ]Finally, the total resistance is determined by:[ RTOTAL = Rg(ON) + RDRV(ON) + \frac{VDD}{Vgs + Ig(avr)} ]
This equation links the total resistance with the gate voltage and output voltage slope, ensuring that the switching characteristics meet the specified parameters.
Matlab
0
2024-11-06
HEX2RGB Convert Hexadecimal Color to RGB Values(v1.0,February 2014)-MATLAB Development
The function HEX2RGB(HEX) converts a hexadecimal color string HEX to its corresponding RGB values. The RGB matrix has three columns representing the red, green, and blue components of the color. For a cell array of color strings, the number of rows in RGB will match the number of elements in the cell array. For a character array HEX, the number of rows in RGB will match the number of entries in HEX. Hexadecimal color strings can also be expanded from three-digit to six-digit by doubling each digit (i.e., XYZ -> XXYYZZ).
Examples:- hex2rgb('556b2f') % 6-digit string -> [85 107 47]- hex2rgb('f0f') % 3-digit string -> [255 0 255]- hex2rgb({'8B4513','FF0'}) ?ll array -> [139 69 19; 255 0]- hex2rgb(['FF6347'; '40E0D0']) % Multi-line character array -> [255 99 71; 64 224 208]
Matlab
0
2024-11-06
Matlab Scheduling Algorithm Simulation Code-CSC417Physics-Based Animation
Course Information
Course Title: Matlab Scheduling Algorithm Simulation Code - CSC417 / CSC2549: Physics-Based Animation
Instructor: Professor [Name] (Contact via email)
Office Hours: Tuesdays 5:00 PM - 6:00 PM via Zoom (Link will be sent to registered students)
Teaching Assistant (TA): Vismay Modi, Honglin Chen
Course Description:This course aims to introduce students to the fundamental mathematical and algorithmic techniques required for effective numerical simulation of physical phenomena, such as rigid bodies, deformable bodies, and fluids. The focus is on developing algorithms that produce visually compelling representations of physical systems. Topics include the mathematics for describing the motion of physical objects, discretization techniques, and efficient numerical methods for solving discrete equations.
Prerequisites:- C/C++ programming- Linear algebra- Calculus- Numerical methods
Students should be familiar with basic linear algebra, geometry, and vector calculus. Basic programming skills in C++ are assumed. (Strongly recommended: Multivariable calculus.)
Useful Resources: Please refer to the course materials for recommended readings and additional resources.
Zoom Office Hours:- Tuesday: 4:00 PM - 5:00 PM- Wednesday: 2:00 PM - 3:00 PM(Links will be sent via email to registered students)
Discussion Board: Access course discussion board for assignments and discussions.
Summary
CSC417 provides the theoretical and practical foundation for developing physics-based animation algorithms using Matlab. Students will learn to simulate and represent complex physical systems like rigid bodies, deformable bodies, and fluids. The course emphasizes the application of numerical methods to solve physical equations for real-time simulations.
Matlab
0
2024-11-06
双目视觉算法实现与三维重建
Matlab标定:完成相机标定,获取相机内参和外参。
OpenCV立体校正:使用OpenCV进行图像校正,确保左右视图的对准。
BM、SGBM、GC算法匹配:利用匹配算法(包括Block Matching、Semi-Global Block Matching和Graph Cut)进行立体匹配。
三维重建:根据匹配结果,通过公式法(如三角测量)还原三维图像。此项目集成了博客上许多技术资料,适合有需要的人进行参考与实践。
Matlab
0
2024-11-06
Matlab LM Algorithm Code-TIC Information Theory and LM Code Course Snippets
在信息理论与LM代码课程期间,我编写了多个Matlab/Octave代码片段。这些代码涵盖了互信息计算、信道容量模拟及数值积分等内容,具体如下:
assignment01_mutinfo:一个Matlab/Octave函数,给定转换矩阵P和输入符号Px的概率向量,计算并返回互信息I(X; Y)。该函数还提供了多组测试,展示了不同P和Px集合的通道互信息,并输出了3D表面图。
Assignment02_apcap_numint:该脚本用于绘制对足未量化通道、AWGN未量化通道和对足2级量化通道的容量比较。此外,它还包括一个函数,利用不同算法进行确定的数值积分。
Assignment03_noisyap2L:该脚本用于模拟嘈杂环境下的对映体2级传输。
Assignment04_noisyap2LHamm:该脚本使用汉明分组代码,在AWGN通道上模拟对偶2级传输。
Matlab
0
2024-11-06
NURBS Curve and Surface Toolbox for MATLAB
该工具箱包含了各种绘制NURBS曲线和NURBS曲面的程序。对于从事曲面设计或相关领域的工作者来说,非常有用;同时,也为学习MATLAB编程提供了强大的支持,帮助用户更好地掌握该语言的应用。
Matlab
0
2024-11-06
MATLAB端口动态识别与设置教程
将介绍基于MATLAB的端口设置方法,帮助用户动态识别和配置端口。通过这些技巧,用户可以更灵活地进行MATLAB环境下的硬件连接管理与调试。中的关键操作包括:
动态识别设备端口
配置正确的端口号
使用MATLAB进行端口通信设置
希望这些内容能为您提供有效的帮助与参考。
Matlab
0
2024-11-06