Question about S function
1 回表示 (過去 30 日間)
古いコメントを表示
Hi,
Is it possible to realize the following with Level 2 S function?
The input is a binary data, that is, every time only one bit can be read. The output shall save up to 10 bit and give them out. In this case the sample times at the input and at the output are different.
The problem is, in S function "block.InputPort(1).Data" is only valid for the current sample time.
Thanks Senmeis
0 件のコメント
採用された回答
その他の回答 (1 件)
Owen
2012 年 10 月 11 日
3 件のコメント
Kaustubha Govind
2012 年 10 月 16 日
Owen: You cannot change the size of DWork vectors at runtime. It is best to initialize it to a vector of 10 zeros and gradually fill it in.
参考
カテゴリ
Help Center および File Exchange で Data Types についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!