MatLab Coder Class Mismatch

6 vues (au cours des 30 derniers jours)
Marcelo Sena
Marcelo Sena le 18 Avr 2015
Hi, I am trying to create a mex-file from an .m file using MatLab coder. CUrrently I have the following problem:
?? Class mismatch (double ~= logical). The class to the left is the class of the left-hand side of the assignment
The code line of the error is:
test = max(any(tdecis-decis));
I tried pre-assigning test a logical value, but I received the same error:
test = true;
test = max(any(tdecis-decis));
Any help is appreciated.
Thanks.

Réponses (0)

Catégories

En savoir plus sur MATLAB Coder dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by