![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/178146/image.png)
Simulinkでuint8の配列をバスオブジェクトに変換するブロックの記述方法
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
matlab function blockを使うことが考えられますが、 その中でmemcpyに相当することを行うにはどのようにすればよろしいでしょうか。
もしくは既存のsimulink ブロックを使って行う方法があれば教えてください。
0 comentarios
Respuestas (1)
Yoko
el 7 de Sept. de 2017
配列からバスオブジェクトへ変換するだけであれば、Bus Creator ブロックで変換できます。 memcpy を行うということですが、uint8の配列をコピーして、2つの配列をバスオブジェクトとして定義したいということでしょうか。 上記を基本ブロックで実現するのであれば、例えば下記の図のような方法が考えられます。
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/178146/image.png)
モデルも添付しますので、動作など確認してみてください。
Ver también
Categorías
Más información sobre 合成信号 en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!