how to solve mismatch data types

조회 수: 10 (최근 30일)
lei xu
lei xu 2018년 9월 28일
답변: ANKUR KUMAR 2018년 9월 28일
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.

답변 (1개)

ANKUR KUMAR
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

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by