Skip to content

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

@Qin98331

Description

@Qin98331

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions