Azzera filtri
Azzera filtri

how to solve mismatch data types

1 visualizzazione (ultimi 30 giorni)
lei xu
lei xu il 28 Set 2018
Risposto: ANKUR KUMAR il 28 Set 2018
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.

Risposte (1)

ANKUR KUMAR
ANKUR KUMAR il 28 Set 2018
I dont understand your question fully. But I think this might helps you.
>> a=8
a =
8
>> int32(a)
ans =
int32
8

Categorie

Scopri di più su Data Type Conversion in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by