Problem 498. Find the Kronecker Tensor Product without using KRON
Solution Stats
Problem Comments
-
4 Comments
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.
Solution Comments
Show commentsProblem Recent Solvers45
Suggested Problems
-
2337 Solvers
-
Check to see if a Sudoku Puzzle is Solved
319 Solvers
-
First non-zero element in each column
833 Solvers
-
Generate N equally spaced intervals between -L and L
846 Solvers
-
Generate a vector like 1,2,2,3,3,3,4,4,4,4
10248 Solvers
More from this Author16
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!