yile - MATLAB Cody - MATLAB Central

yile

29301
Rank
2
Badges
150
Score
1 – 17 of 17

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 48694 to Problem 167. Pizza!

on 22 Feb 2012

yile submitted Solution 48057 to Problem 5. Triangle Numbers

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 47963 to Problem 149. Is my wife right?

on 22 Feb 2012

yile submitted Solution 47899 to Problem 8. Add two numbers

on 21 Feb 2012

yile received Solver badge for Solution 47887

on 21 Feb 2012

1 – 17 of 17
Go to top of page