S-function 2 dimension Dwork?
显示 更早的评论
Hello,
I'm coding a state estimator (EKF) using an matlab coded s-function, and need to store the state and covariance matrix at each time step.
Is it possible to set the Dwork to a 2 dimensional matrix? If so, how? If not, are there any other alternative methods to store the covariance matrix after each step?
Thanks, Alex
采纳的回答
更多回答(1 个)
Erwin Torreao Dassen
2013-9-2
1 个投票
Humm... I was also needing this. Elsewhere in Simulink when specifying dimensions one can use an array like [2 3] to specify a 2D (or even more) signal. This doesn't work for the Dwork vector. Nowhere in the documentation is this stated and the "dimensions" name for the dwork property is misleading. It would be very good to support multidimensional work vectors (feature request?). For now at least state this in the documentation.
Kind regards,
Erwin
1 个评论
Nshine
2020-2-12
I completely agree with this answer. The documentation is not clear, and in fact inconsisent with Matlab's typical use of 'dimension'. If it is stated somewhere, I havent been able to easily find it.
类别
在 帮助中心 和 File Exchange 中查找有关 C Shared Library Integration 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!