How to use an s - function to write a multivariable matrix ?
조회 수: 2 (최근 30일)
이전 댓글 표시
Helo,
I must communicate my system with xPC in HiL in Matlab 2016 and I have a problem to write matrix KK=[3x6]. When I write this in 'gain' block in Simulink: [1.458e+003 0 -0.0004e+003 -0.7332e+003 0 0.0002e+003; 0.0001e+003 1.6243e+003 -0.0058e+003 0 -0.847e+003 0.0034e+003; -0.0052e+003 -0.0016e+003 0.4215e+003 0.003e+003 0.001e+003 -0.2194e+003] and I try to work in xPC, Simulink has an error and doesn't work ( thing is, it used to work exactly like this in Matlab 2012b ). I think when I will write this matrix in .c file maybe it will work. The example in 'stvmgain.c' has gain as a variable, is it possible to use gain matrix instead ? Any advice please ? Thank you and Regards, Monika R.
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Communications Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!