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

조회 수: 1 (최근 30일)
直樹 田中
直樹 田中 2021년 1월 8일
답변: Toshinobu Shintai 2021년 1월 8일
simulinkモデルへの入力データをtimeseriesを使って作成するとdouble型になりますが、
これをsingle等、他の型に変更することは可能でしょうか?

답변 (1개)

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

카테고리

Help CenterFile Exchange에서 モデル化에 대해 자세히 알아보기

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!