MATLAB coder input type definition problem
显示 更早的评论
Hi.I'm using MATLAB coder for generating C code. For starting I tried a test.
function energy = code_raw_1(x)
y = max(x);
energy =y;
end
I want input type as uint16 but as I defined it, this error came up !!!

Incorrect class for expression 'x': expected 'uint16' but found 'double'.
I don't know why but it seems i have to define input as double.Any bright ideas?Thanks
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB Coder 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!