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

Learn moreOpportunities for recent engineering grads.

Apply TodaySearch Solutions

1 – 48 of 48 previous next

52Size

0 Comments

54Size

0 Comments

12Size

0 Comments

12Size

0 Comments

14Size

0 Comments

12Size

0 Comments

48Size

0 Comments

12Size

0 Comments

12Size

0 Comments

12Size

0 Comments

12Size

0 Comments

12Size

0 Comments

12Size

0 Comments

27Size

0 Comments

83Size

0 Comments

14Size

0 Comments

12Size

0 Comments

73Size

0 Comments

25Size

0 Comments

12Size

0 Comments

83Size

0 Comments

12Size

0 Comments

14Size

0 Comments

12Size

0 Comments

12Size

0 Comments

12Size

0 Comments

14Size

0 Comments

12Size

0 Comments

29Size

0 Comments

47Size

0 Comments

12Size

1 Comment

1 Comment

Khaled Hamed
on 1 Aug 2012

The problem asks to "add" a zero, no mention of append or prepend! Nice general solution though, and a new trick learned ($&0)

12Size

0 Comments

12Size

0 Comments

12Size

0 Comments

28Size

0 Comments

16Size

0 Comments

12Size

0 Comments

12Size

0 Comments

12Size

0 Comments

14Size

0 Comments

28Size

0 Comments

12Size

0 Comments

30Size

0 Comments

14Size

0 Comments

95Size

0 Comments

12Size

5 Comments

3 players like this solution

5 Comments

Show
2 older comments

Ned Gulley
on 26 Jul 2012

I didn't know about $0! Nifty.

Khaled Hamed
on 26 Jul 2012

Neither did I! Matlab has great help.

Richard Zapor
on 31 Jul 2012

The solution is not correct for the generalized case. 0$0 does a pre-pend of 0 not an append. The correct general solutions is either $00, or better to avoid operator ($0) confusion with the test set using 0s is operator ($%) $&0.

Richard Zapor
on 31 Jul 2012

The solution is not correct for the generalized case. 0$0 does a pre-pend of 0 not an append. The correct general solutions is either $00, or better to avoid operator ($0) confusion with the test set using 0s is operator ($&) $&0. (Typo in prior comment)

Khaled Hamed
on 1 Aug 2012

The problem asks to "add" a zero, no mention of append or prepend! Nice general solution though, and a new trick learned ($&0)

41Size

0 Comments

1 – 48 of 48 previous next