hongbo-miao/hongbomiao.com

View on GitHub
matlab/call-c-function-in-matlab/mathOps.m

Summary

Maintainability
Test Coverage
function [added, multed] = mathOps(n1, n2)
    added = 0;
    coder.cinclude('add.h');
    added = coder.ceval('add', n1, n2);

    multed = n1 * n2;
end