Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to generate c code using "float" type instead of "double" #57

Open
Qin98331 opened this issue Apr 12, 2024 · 0 comments
Open

Failure to generate c code using "float" type instead of "double" #57

Qin98331 opened this issue Apr 12, 2024 · 0 comments

Comments

@Qin98331
Copy link

Hi, I wanna generate C code for my MCU, and use "float" instead of "double". The Matlab command is:

"m.codegen('Ccode1','FLOAT',true,'LONG',false)"

This command is able to generate c code. However the type of numerical variable is still double.

1> [CMake] -- Floats are OFF
1> [CMake] -- Long integers (64bit) are ON

what's wrong with it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant