Data type mismatch-Compare To Zero' is a signal of data type 'boolean'. However, it is driving a signal of data type 'double'.
Show older comments
Hi,

ell me how to bypass this error: Data type mismatch. Output port 1 of 'shema_omejitve_1_1_regout_ver5/ regulator toka (q)/Compare To Zero' is a signal of data type 'boolean'. However, it is driving a signal of data type 'double'. I am using Matlab ver 2016b.
Answers (2)
Birdman
on 4 Apr 2018
0 votes
Use a Data Type Conversion block to put it in front of your Compare To Zero block to convert the data type to double.
ParulVivekSunder
on 28 Oct 2024
0 votes
Data type mismatch-Compare To Zero' is a signal of data type 'boolean'. However, it is driving a signal of data type 'double'. I am facing this issue while preparing a model for my quadcopter. please help me
Categories
Find more on Signal Attributes and Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!