ctrectjac
Description
Examples
Jacobian of Constant Turn-Rate Rectangular Motion Model
Define a state vector for the model.
state = [1;2;2;30;1;4.7;1.8];
Compute the Jacobian. dt
= 1 second.
jac = ctrectjac(state)
jac = 7×7
1.0000 0 0.8616 -0.0177 -0.0089 0 0
0 1.0000 0.5075 0.0301 0.0150 0 0
0 0 1.0000 0 0 0 0
0 0 0 1.0000 1.0000 0 0
0 0 0 0 1.0000 0 0
0 0 0 0 0 1.0000 0
0 0 0 0 0 0 1.0000
Compute the Jacobian. dt
= 0.1 second without noise.
jac = ctrectjac(state,0.1)
jac = 7×7
1.0000 0 0.0866 -0.0017 -0.0001 0 0
0 1.0000 0.0501 0.0030 0.0002 0 0
0 0 1.0000 0 0 0 0
0 0 0 1.0000 0.1000 0 0
0 0 0 0 1.0000 0 0
0 0 0 0 0 1.0000 0
0 0 0 0 0 0 1.0000
Compute the Jacobian. dt
= 0.1 second with noise.
jac = ctrectjac(state,0.01,0.1)
jac = 7×7
1.0000 0 0.0866 -0.0017 -0.0001 0 0
0 1.0000 0.0501 0.0030 0.0002 0 0
0 0 1.0000 0 0 0 0
0 0 0 1.0000 0.1000 0 0
0 0 0 0 1.0000 0 0
0 0 0 0 0 1.0000 0
0 0 0 0 0 0 1.0000
Input Arguments
state
— Current state
1-by-7 real-valued vector
Current state, specified as a 1-by-7 real-valued vector. The sate of the constant-turn rectangular target model is [x; y; s; θ; ω; L; W]. The meaning of these variables and their units are:
Variable | Meaning | Unit |
x | Position of the rectangle center in x direction | m |
y | Position of the rectangle center in y direction | m |
s | Speed in the heading direction | m/s |
θ | Orientation angle of the rectangle with respect to x direction | degree |
ω | Turn-rate | degree/s |
L | Length of the rectangle | m |
W | Width of the rectangle | m |
Example: [1;2;2;30;1;4.7;1.8]
Data Types: single
| double
dt
— Time step
real-valued positive scalar
Time step, specified as a real-valued positive scalar in second.
Data Types: single
| double
w
— Process noise
real scalar | 2-element real-valued vector
Process noise, specified as a 2-element real-valued vector. The first element specifies the process noise in linear acceleration (m/s2). The second element specifies the process noise in yaw acceleration (degrees/s2).
Data Types: single
| double
Output Arguments
Jx
— Jacobian matrix with respect to state
7-by-7 matrix
Jacobian matrix with respect to state, returned as a 7-by-7 matrix.
Data Types: double
Jw
— Jacobian with respect to process noise
7-by-2 matrix
Jacobian with respect to process noise, returned as a 7-by-2 matrix.
Data Types: double
Extended Capabilities
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
Version History
Introduced in R2019b
See Also
gmphd
| trackerPHD
| ctrect
| ctrectmeas
| ctrectmeasjac
| initctrectgmphd
| ctrectcorners
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)