Simulink adaptation using Matlab function blocks with vector inputs
조회 수: 2 (최근 30일)
이전 댓글 표시
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
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!