I have a row vector consisting of 200 engine speeds. I want to feed one value at a time into an alternator block. How do I do it?
조회 수: 2 (최근 30일)
이전 댓글 표시
How do I feed one value at a time from a pool of data. I tried using the matlab function block but it feeds all the data together rather that feeding it one at a time.
댓글 수: 0
채택된 답변
Birdman
2018년 7월 20일
Use From Workspace block. Define your data at your workspace, and also define a time vector. These two vectors should be nx1, same length and then put them in a new vector called Data, which is nx2. Then use this Data variable in From Workspace block. Hope this helps.
댓글 수: 2
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Simulink Functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!