the second test case misspelled assert and is missing a close parenthesis
Thanks, I have made the corrections.
To address the term: "without using KRON", may you please add this (or something similar) to the test suite: % Test for kron usage fid = fopen(which(), 'r'); c = onCleanup(@()fclose(fid)); tline = fgetl(fid); while ischar(tline), if strfind(tline,'kron'), error('Don''t use kron'); end tline = fgetl(fid); end ... This should work fine after you've renamed your function and iserted it in .
Thanks, I applied your suggestion but with some syntactical changes. Code is fully tested now so 'kron' answers disallowed.
3098 Solvers
random picture with random colours
138 Solvers
Selecting books on MATLAB for experts and beginners (blindfolded)
65 Solvers
Vectorize the digits of an Integer
271 Solvers
Make a run-length companion vector
520 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!