Simulink adaptation using Matlab function blocks with vector inputs

조회 수: 2 (최근 30일)
Philip Ahl
Philip Ahl 2019년 6월 25일
편집: Philip Ahl 2019년 6월 25일
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개)

카테고리

Help CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by