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.
Project Euler: Problem 5, Smallest multiple
Getting logical indexes
Wrapping the Tower of Pisa
Equal to their cube
Is the input divisible by 3?
How many days does the cat take to climb out of the hole?
Pythagorean perfect squares: find the square of the hypotenuse and the length of the other side
Similar Triangles - find the height of the tree
Flip the main diagonal of a matrix
Find the "ordinary" or Euclidean distance between A and Z
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office