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.
Remove the polynomials that have positive real elements of their roots.
Project Euler: Problem 8, Find largest product in a large string of numbers
Number of 1s in a binary string
Generate a string like abbcccddddeeeee
Given a 4x4 matrix, swap the two middle columns
Solve the set of simultaneous linear equations
Is A the inverse of B?
What is the distance from point P(x,y) to the line Ax + By + C = 0?
Flip the main diagonal of a matrix
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