In the Simulink, Coudn't I use "a_ = NaN([1024,​128],'sing​le','gpuAr​ray');" ?

2 次查看(过去 30 天)
In the Simulink, Coudn't I use "a_ = NaN([1024,128],'single','gpuArray');" ???
  3 个评论
MINHOON KIM
MINHOON KIM 2020-10-6
Expression must be numeric. Found it to be char. Function 'MATLAB Function' (#36.216.224), line 7, column 21: "'single'" Launch diagnostic report.
Component:MATLAB Function | Category:Coder error
Errors occurred during parsing of MATLAB function 'untitled/MATLAB Function'
Component:MATLAB Function | Category:Coder error
Simulink cannot determine sizes and/or types of the outputs for block 'untitled/MATLAB Function' due to errors in the block body, or limitations of the underlying analysis. The errors might be inaccurate. Fix the indicated errors, or explicitly specify sizes and/or types for all block outputs.
Component:MATLAB Function | Category:Coder error
Simulink cannot determine sizes and/or types of the outputs for block 'untitled/MATLAB Function' due to errors in the block body, or limitations of the underlying analysis. The errors might be inaccurate. Fix the indicated errors, or explicitly specify sizes and/or types for all block outputs.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulation 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by