yile
29301
29301
Rank2
2
Badges150
150
Score
yile submitted a Comment to Problem 10. Determine whether a vector is monotonically increasing Does anyone know why this is not working? The code looks chunky, but it should work. Thanks!!
string1 = ['tf is true'];
string2 = ['tf is false'];
tf = diff(x);
w = numel(find(tf==0)) + numel(find(tf<0));
if w > 0
disp(string2)
else
disp(string1)
end
on 6 Apr 2012 |
yile submitted Solution 54334 to Problem 6. Select every other element of a vector on 29 Feb 2012 |
yile submitted Solution 53823 to Problem 4. Make a checkerboard matrix on 28 Feb 2012 |
yile submitted Solution 53804 to Problem 17. Find all elements less than 0 or greater than 10 and replace them with NaN on 28 Feb 2012 |
yile submitted Solution 48694 to Problem 167. Pizza! on 22 Feb 2012 |
yile submitted Solution 48057 to Problem 5. Triangle Numbers on 22 Feb 2012 |
yile submitted Solution 48044 to Problem 26. Determine if input is odd on 22 Feb 2012 |
yile received Commenter badge for Solution 4096 on 22 Feb 2012 |
yile submitted a Comment to Solution 4096 You can't just do B = A(:,[end,1])...this would end up two columns if A has only one column. You should do A(:,[1,end]) = A(:,[end,1])) and then B = A
on 22 Feb 2012 |
yile submitted Solution 48018 to Problem 7. Column Removal on 22 Feb 2012 |
yile submitted Solution 48014 to Problem 19. Swap the first and last columns on 22 Feb 2012 |
yile submitted Solution 47972 to Problem 3. Find the sum of all the numbers of the input vector on 22 Feb 2012 |
yile submitted Solution 47963 to Problem 149. Is my wife right? on 22 Feb 2012 |
yile submitted Solution 47901 to Problem 2. Make the vector [1 2 3 4 5 6 7 8 9 10] on 21 Feb 2012 |
yile submitted Solution 47899 to Problem 8. Add two numbers on 21 Feb 2012 |
yile submitted Solution 47887 to Problem 1. Times 2 - START HERE on 21 Feb 2012 |
yile received Solver badge for Solution 47887 on 21 Feb 2012 |