deploy raspberry pi error
Ältere Kommentare anzeigen
I followed the example to 'Send Inputs to MATLAB Function from Command Line of Raspberry Pi'
and I got an error at the last 'deploy'
how can i solve this problem?? i use 2020b
///////////////////////////////////////////////////////////////////////////////////////////////////////
function simpleSum(a,b)
%#codegen
assert(all(size(a) ==1));
assert(isa(a,'double'));
assert(all(size(b) ==1));
assert(isa(b,'double'));
c = a + b;
fprintf('%f + %f = %f\n',a,b,c);
end
////////////////////////////////////////////////////////////////////////////////////////////////////////////
>> deploy(board,'simpleSum')
------------------------------------------------------------------------
Function 'find_system' is not defined for type 'double' input arguments.
------------------------------------------------------------------------
??? Build error: C compiler produced errors. See the Build Log for further details.
More information
Code generation failed: View Error Report
1 Kommentar
Prasanth Sunkara
am 26 Aug. 2021
Function should not take any input arguments for deployment purpose.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Raspberry Pi Hardware finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!