simulinkの入力データのデータ型について

simulinkモデルへの入力データをtimeseriesを使って作成するとdouble型になりますが、
これをsingle等、他の型に変更することは可能でしょうか?

Answers (1)

Toshinobu Shintai
Toshinobu Shintai on 8 Jan 2021

0 votes

timeseriesデータの値をsingleなどのデータ型で作ると、そのままそのデータ型でSimulinkで扱うことができます。添付のモデルをご確認ください。
MATLABのコマンドで数値を特定のデータ型にするには、「single()」や「int32()」という関数を使うと変換することができます。

Categories

Find more on モデル化 in Help Center and File Exchange

Products

Release

R2019b

Tags

Asked:

on 8 Jan 2021

Community Treasure Hunt

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

Start Hunting!