www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/SolverTest_3.m

    
% Copyright 2015 The MathWorks, Inc.

function testImaginarySolution(testCase)
    actSolution = quadraticSolver(1,2,10);
    expSolution = [-1+3i, -1-3i];
    testCase.verifyEqual(actSolution,expSolution)
end