How to use an s - function to write a multivariable matrix ?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Communications Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!