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

In the Simulink, Coudn't I use "a_ = NaN([1024,128],'single','gpuArray');" ???

3 Comments

Could you be a bit more specific why you can't assign a_ to a gpuArray? Are you getting an error messaage? Out of memory? Performance? Etc.
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.

Sign in to comment.

Answers (0)

Tags

Asked:

on 6 Oct 2020

Commented:

on 6 Oct 2020

Community Treasure Hunt

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

Start Hunting!