Simulink adaptation using Matlab function blocks with vector inputs
2 views (last 30 days)
Show older comments
Hi, i'm new to Simulink and am working on a project. The bigger picture is that I want to gather different sensor data, pick out an interval of that, and in my matlab functions analyze it, a kind of adaption. It feels like I have a fundamental misconception since I thought my matlab scripts could work directly in Simulink. I have a couple of matlab function blocks which in matlab takes vectors as inputs, but when I use a source such as "from workspace" I get the error that it cannot handle more than one value at the same time: Index expression out of bounds. Attempted to access element 2. The valid range is 1-1.
So I wonder if there is any neat way of collecting a given interval of a continous flow of sensor data (as a beginning, the raw input will just be a vector which will represent sensor data) so that it could be analyzed by some matlab functions?
Dear regards,
Phil
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!