CMEX output matrix on simulink
Show older comments
Hello actually i'm working on developing Recursive least square method on S function for online identification. First i want to check on simulink. when Writing in .m to C file , i used a lot of matrix multiplication and the result comes out in a 2*2 matrix. I want to know how i show this output 2*2 matrix value on simulink from CMEX file, which function i need to use in C file and also what block in simulink. I used a pointer *y to get an output port signal in CMEX file.That's why when i tried to use y with output matrix it give error because of pointer. How we can store 2*2 matrix value in a pointer and then look in Simulink block or transfer these values in workspace? If some has knowledge then please guide me Thank you so much
Answers (0)
Categories
Find more on String in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!