test_script

test_script - % functions. Use the included test cases, and...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
% Test Script % % Since you can't run your functions by pressing F5 (they need input), you % are encouraged to write a test script to help you test your functions. % You can simply open this script and press F5, and all of your code will % be tested at once. After running this script the variables defined % within will appear in the workspace window just like they did for % homework 1. % % You should fill out this test script with test cases from your other
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: % functions. Use the included test cases, and write your own too. % % Problem 1. %both=arrayMix([4 6 9 11],[2 -2 -4 8]) %both1=arrayMix([1 3 5 7],[2]) % Problem 2. %out=eliminate([30 50 43 67 64 19 98]) %out1=eliminate([-53 -64 18 11 pi]) % Problem 3. %order=rotCeva([450 532 34 28 657 51]) %out = rotCeva([450 532 34 28 657 51]) % Problem 4. [quan vec]=eval_vec([1 22 4 5 8 9 3 7 11 15 23 12 19],9,16)...
View Full Document

Ask a homework question - tutors are online