Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!

Jan Orwat

View profile information

Professional Interests

BSS, beamforming

4Rank
18Badges
23035Score

Jan Orwat submitted Solution 926616 to Problem 42914. Counting the Grand Primes

6 hours and 46 minutes ago

Jan Orwat submitted Solution 920692 to Problem 2959. Divide by 4

on 8 Jul 2016 at 18:15

Jan Orwat submitted a Comment to Solution 917113

You can use Gauss formula for triangular numbers. It will improve performance. It won't improve Cody size. To improve Cody size, you need hack. Popular hack is to wrap the code into regular expression. Somebody invented it to cheat scoring algorithm and it spreaded among cody submissions like a cancer. I'm not proud of this, I was using this hack too, fortunately realised that it makes no sense. Advice: don't care so much about the size, care about quality code. Most of super small solutions use some sort of cheats, you won't learn much from those.

on 2 Jul 2016 at 9:27

Jan Orwat submitted a Comment to Problem 42476. Model a falling body

Jonathan, it is unlikely to get rejected due to small error. After complaints, MathWorks/Cody Team took care about it few months ago. Based on submission times, solutions which may be yours were classified incorrect, because one of criterions is to stop simulation after reaching ground level and those solutions don't include this part.

on 2 Jul 2016 at 8:56

Jan Orwat submitted Solution 918094 to Problem 42901. Free-time Equation

on 2 Jul 2016 at 8:21

Jan Orwat submitted a Comment to Solution 917246

true, not 'true', false, not 'false'

on 30 Jun 2016 at 23:09

Jan Orwat submitted Solution 916844 to Problem 42894. Find longest run

on 30 Jun 2016 at 2:13

Jan Orwat submitted Solution 916843 to Problem 42894. Find longest run

on 30 Jun 2016 at 2:08

Jan Orwat submitted Solution 916842 to Problem 42894. Find longest run

on 30 Jun 2016 at 2:07

Jan Orwat submitted Solution 916841 to Problem 1222. Create a Video

on 30 Jun 2016 at 2:01

Jan Orwat submitted Solution 916808 to Problem 42894. Find longest run

on 30 Jun 2016 at 1:02

Jan Orwat submitted Solution 916807 to Problem 42894. Find longest run

on 30 Jun 2016 at 0:55

Jan Orwat submitted a Comment to Solution 910588

Note that "c(c==-d) = d" means that c and d must be same size or d is scalar. Moreover if d is not a scalar, then all "c==-d" must be true. This code seems to work in rare case, when one value is negative real number, and the rest are positive real numbers, but I have not tested it.

on 18 Jun 2016

Jan Orwat received Magic Numbers Master badge

on 14 Jun 2016

Jan Orwat submitted a Comment to Solution 906647

Yes, I was looking for something cody-friendly :). I forgot it works in this form iff gcd(n(1),n(2))==1.

on 11 Jun 2016