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 view (last 30 days)
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 filetest.m
M1 = rand(4,4);
M2 = rand(4,4);
[a,b] = min_max(M1,M2);

Answers (0)

Categories

Find more on MATLAB Coder in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!