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

Learn moreOpportunities for recent engineering grads.

Apply TodayMarlies submitted a Comment to Problem 35. Quote Doubler

This problem description would benefit from an example of the kind of input that could be expected (as well as the correct output).
Based on the description, I thought that I had to replace the string 'o'clock' with the string 'o''clock' (so making it usable in MATLAB.). And no, I did not manage to create input like that.
Instead, you want to replace every single quote with a double quote EXCEPT for the start-and-end quotes.
So 'o''clock' ==> 'o''''clock'

on 26 Mar 2013

Marlies submitted Solution 223727 to Problem 15. Find the longest sequence of 1's in a binary sequence.

on 26 Mar 2013

Marlies submitted Solution 223726 to Problem 15. Find the longest sequence of 1's in a binary sequence.

on 26 Mar 2013

Marlies submitted Solution 163852 to Problem 10. Determine whether a vector is monotonically increasing

on 15 Jan 2013

Marlies submitted Solution 177756 to Problem 16. Return the largest number that is adjacent to a zero

on 15 Dec 2012

Marlies submitted Solution 177727 to Problem 105. How to find the position of an element in a vector without using the find function

on 15 Dec 2012

Marlies submitted Solution 177722 to Problem 105. How to find the position of an element in a vector without using the find function

on 15 Dec 2012

Marlies submitted a Comment to Solution 174048

For the second test-case, something is wrong.
* If you use the string that is given in S1 in MATLAB, you do NOT get the output that is listed.
* However, to get the output that is listed as the correct one, you cannot have the input that is given.

on 6 Dec 2012

Marlies submitted a Comment to Problem 36. Find relatively common elements in matrix rows

Not sure if the previous commenters have the same issue that I have, but I dislike that this test-suite makes a difference in how the empty-matrix is defined (See also comments for solution 167825).
I would suggest checking isempty' for the relevant solutions.

on 4 Dec 2012

Marlies submitted a Comment to Solution 167825

Found it.
Due to the way the test-suite is set-up (using 'isequal'), MATLAB makes a difference between the values "[]" (size [0 0]) and "Empty matrix: 1-by-0" (size [1 0]), even though they are both considered empty.

on 4 Dec 2012

Marlies submitted Solution 172197 to Problem 36. Find relatively common elements in matrix rows

on 4 Dec 2012

Marlies submitted a Comment to Solution 167825

My solution fails on the magic, the wilkonson and the [1;2] inputs.
However, on my own computer each input works as expected.
Anyone has a hint on where I am going wrong?

on 25 Nov 2012

Marlies submitted Solution 167773 to Problem 30. Sort a list of complex numbers based on far they are from the origin.

on 25 Nov 2012

Marlies submitted a Comment to Problem 9. Who Has the Most Change?

I agree with the last three comments, and I think it is especially 'unfair' for non-americans. If you don't automatically know te values, you will (of course) directly look at the nice 'conversion scheme' that is given, think 'thank you for that' and go completely wrong.
Unless this is of course also teaching about 'commenting in an understandable way.

on 24 Nov 2012

Marlies submitted Solution 164660 to Problem 14. Find the numeric mean of the prime numbers in a matrix.

on 19 Nov 2012