how to solve mismatch data types
10 ビュー (過去 30 日間)
古いコメントを表示
as the attachment I have tried to convert the input data type "double" to the output data type "int32" to meet the final requirement of "out_dac_1", but appear errors as attachment. I think this error kind of related to the mismatch data types, and how to convert the data type correctly? thanks very much for help.
0 件のコメント
回答 (1 件)
ANKUR KUMAR
2018 年 9 月 28 日
I dont understand your question fully. But I think this might helps you.
>> a=8
a =
8
>> int32(a)
ans =
int32
8
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Data Type Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!