Files
LAFF/Answers/Week04/test_Mvmult_unb_var1B.m
Julien Lengrand-Lambert d4dce71599 Create repo
2018-05-02 09:13:08 +02:00

11 lines
255 B
Matlab
Executable File

A = randi( [ -2, 2 ], 4, 4 )
x = randi( [ -2, 2 ], 4, 1 )
y = randi( [ -2, 2 ], 4, 1 )
if ( isequal( Mvmult_n_unb_var1B( A, x, y ), A * x + y ) )
disp( 'Mvmult_unb_var1B appears to be correct' )
else
disp( 'Mvmult_unb_var1B has a problem' )
end