I encounter a problem when I try to change the matlab code into c code using matlab2015b coder. It is“Build error: Compilation returned error status code 2. See the Target Build Log in the report for further details.”can anybody help me have a look?
1 次查看(过去 30 天)
显示 更早的评论
the next is my tested file.Besides,my compliler is: Microsoft Visual C++ 2013 Professional (C).
(1)function file:min_max.m
function [a,b] = min_max(m,n)
temp = m+n;
a = max(max(temp));
b = min(min(temp));
end
(2)script file:test.m
M1 = rand(4,4);
M2 = rand(4,4);
[a,b] = min_max(M1,M2);
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!