Which is the correct syntax for an assertEqual statement that will return a successful message for the function shown below: function [vals] = mystery(vec) vals = vec(1:5); end O assertEqual(vals =...


Which is the correct syntax for an assertEqual statement that will return a successful message for the function shown below:<br>function [vals] = mystery(vec)<br>vals =<br>vec(1:5);<br>end<br>O assertEqual(vals = mystery(vec), [vals])<br>assertEqual([10 20 30 40 50 60 70 80], [10 20 30 40 50])<br>O assertEqual(mystery([10 20 30 40 50 60 70 80]), [10 20 30 40 50])<br>O assertEqual(mystery([10 20 30 40 50 60 70 80])<br>[10 20 30 40 50])<br>==<br>

Extracted text: Which is the correct syntax for an assertEqual statement that will return a successful message for the function shown below: function [vals] = mystery(vec) vals = vec(1:5); end O assertEqual(vals = mystery(vec), [vals]) assertEqual([10 20 30 40 50 60 70 80], [10 20 30 40 50]) O assertEqual(mystery([10 20 30 40 50 60 70 80]), [10 20 30 40 50]) O assertEqual(mystery([10 20 30 40 50 60 70 80]) [10 20 30 40 50]) ==

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here