Peng Liu
36
36
Rank18
18
Badges22300
22300
Score
Peng Liu received Likeable badge for Problem 44345. MATLAB Counter on 24 Jan 2019 |
Peng Liu submitted a Comment to Solution 1685833 Don't be confused by the name "str2num", which might give you a wrong impression that this function only works for str to number conversion. In fact, it is more powerful because it supports evaluation of any valid string or character represented MATLAB expressions in much the same way eval does. The underlying implementation of str2num is indeed based on eval. Check the documentation and source file for more details.
on 18 Dec 2018 |
Peng Liu submitted Solution 1685833 to Problem 44808. Make an anonymous function that has variable output on 3 Dec 2018 |
Peng Liu submitted a Comment to Solution 1075259 Your are right. Among the "missing" family, standardizeMissing and ismissing were introduced in R2013b, whereas others such as rmmissing and fillmissing were introduced in R2016b.
on 25 Oct 2018 |
Peng Liu submitted Solution 1645426 to Problem 44666. Draw 'O' ! on 14 Oct 2018 |
Peng Liu submitted Solution 1644791 to Problem 44666. Draw 'O' ! on 13 Oct 2018 |
Peng Liu submitted Solution 1644786 to Problem 44666. Draw 'O' ! on 13 Oct 2018 |
Peng Liu received Project Euler I Master badge on 11 Sep 2018 |
Peng Liu submitted Solution 1616807 to Problem 44725. Find argmax of a function on 25 Aug 2018 |
Peng Liu submitted Solution 1614253 to Problem 44684. Basic Monte Carlo Simulation on 21 Aug 2018 |
Peng Liu submitted Solution 1482756 to Problem 44549. Find the missing numbers. on 7 Apr 2018 |
Peng Liu submitted a Comment to Problem 43670. Words Count: A String Array Approach Thank you for your interest. Cody is already powered by the newest R2018a. It might be be a good time to start a R2018a challenge group :)
on 1 Apr 2018 |
Peng Liu liked Problem 44532. Funny problems on 8 Mar 2018 |
Peng Liu submitted Solution 1456402 to Problem 44532. Funny problems on 5 Mar 2018 |
Peng Liu submitted Solution 1372567 to Problem 44437. How many days in a month? on 7 Dec 2017 |
Peng Liu submitted Solution 1366709 to Problem 44430. remove every row&col for every nan on 3 Dec 2017 |
Peng Liu submitted Solution 1366597 to Problem 44436. Find the largest number on 3 Dec 2017 |
Peng Liu submitted Solution 1366239 to Problem 44434. Writing Error Messages on 3 Dec 2017 |
Peng Liu submitted a Comment to Problem 44417. 英語の文章内の母音を取り除くコードを書きましょう。 FYI, Cody Coursework is here: https://www.mathworks.com/help/coursework/cody-coursework-for-instructors.html
on 27 Nov 2017 |
Peng Liu submitted a Comment to Problem 44417. 英語の文章内の母音を取り除くコードを書きましょう。 Could you please stop translating existing Cody problems into Japanese? I might be too harsh on this, but you are ruining Cody in a way that the majority Cody players here cannot read Japanese. If you are teaching a MATLAB course in Japanese, I recommend you to start your course on Cody Coursework, where you can create your own problems in whatever languages you like.
on 27 Nov 2017 |
Peng Liu submitted Solution 1358027 to Problem 44416. Sum of adjacent elements in a vector on 27 Nov 2017 |
Peng Liu submitted Solution 1358018 to Problem 44415. Remove the first, third and fifth rows of a matrix on 27 Nov 2017 |
Peng Liu submitted Solution 1354511 to Problem 44412. Decoder Ring on 22 Nov 2017 |
Peng Liu submitted a Comment to Solution 1351541 Many thanks Alfonso for your suggestion. I was just thinking if I can ban a persistent cheater based on the player id. What you suggested is exactly what I need. If this guy cheats one more time (which is getting harder now with my added pcode in the test suite), I will definitely ban the guy using your suggested code.
on 21 Nov 2017 |
|
Peng Liu submitted Solution 1351303 to Problem 44408. ゼロでない要素が一番多い行を探そう on 21 Nov 2017 |
Peng Liu submitted Solution 1351302 to Problem 44404. 行列内の素数の平均をとろう on 21 Nov 2017 |
Peng Liu submitted Solution 1351300 to Problem 44402. Horizontal matrix sort on 21 Nov 2017 |
Peng Liu submitted Solution 1351299 to Problem 44401. Vertical matrix sort on 21 Nov 2017 |
Peng Liu submitted Solution 1351296 to Problem 44403. Goldbach's marginal conjecture - Write integer as sum of three primes on 21 Nov 2017 |
Peng Liu submitted Solution 1351228 to Problem 44390. Test your luck! on 20 Nov 2017 |
Peng Liu submitted Solution 1351186 to Problem 44389. Just take it easy for a second or two! on 20 Nov 2017 |
|
|
Peng Liu submitted a Comment to Solution 1349442 Hard-coded solutions are disallowed.
on 19 Nov 2017 |
Peng Liu submitted Solution 1347552 to Problem 44410. NaN (欠損値) が含まれている行を削除しよう on 17 Nov 2017 |
Peng Liu submitted Solution 1333218 to Problem 44400. 二つのベクトルの要素ごとの積の平均を計算しよう on 9 Nov 2017 |
Peng Liu submitted Solution 1333217 to Problem 44399. 二乗になっている数を見つけよう on 9 Nov 2017 |
Peng Liu submitted a Comment to Solution 1328026 Tests #7 and 8 involved an 0*0 array [] as the index, which is an extreme case where MATLAB returns nothing without issuing any error. Since no error occurs in the try block, the program flow does not enter the catch block. Hope this helps.
on 9 Nov 2017 |
Peng Liu submitted a Comment to Solution 1328026 For the non-integer test cases #3 and #6, it is the subscript indexing error that was catched in your ans{index} indexing statement (because subscript index has to be either positive integer or logical).
on 8 Nov 2017 |
Peng Liu submitted a Comment to Solution 1328026 Because a comma separated list cannot be assigned to a single variable, this is how your previous solution catched the assignment error and triggered the catch statement (as desired). However, what you did here is only to generate a comma separated list without any assignment, and thus, no assignment error occurs which cannot trigger the catch statement.
on 7 Nov 2017 |
Peng Liu submitted Solution 1329554 to Problem 44398. ベクトルの値が増加しているかを調べよう on 6 Nov 2017 |
Peng Liu submitted a Comment to Problem 44390. Test your luck! Your testsuite is broken.
on 4 Nov 2017 |
Peng Liu submitted Solution 1327627 to Problem 44397. Determine whether the input is odd, even, or neither. on 4 Nov 2017 |
Peng Liu submitted a Comment to Problem 43708. Replace all odd numbers with NaN @David I agree with you that there is no dedicated channel for reporting Cody bugs, and your idea of Cody-specific discussion forum is awesome. The unable to "delete", unable to "unlike" are longstanding bugs for more than a year now. I hope this should catch the Cody term's attention.
on 3 Nov 2017 |
Peng Liu submitted a Comment to Problem 44374. Tautology Having said that, I would raise suggestion to the Cody team that whenever a problem is updated and rescored, all solvers, or at least the solvers whose solutions failed the new tests, should be notified.
on 3 Nov 2017 |
Peng Liu submitted a Comment to Problem 44374. Tautology @James. Thank you for your explanation, and I do appreciate. I don't have problems with Jan's approach which gradually reinforces the testsuite and makes the problem harder and harder. In fact, all he did was just addressing all raised comments from the solvers side (thus, nothing to blame here). But I personally hesitated to make such significant changes on my own problem once it is published in the Cody5 anniversary group, because solvers are not notified when their solutions failed the new added test cases. If solvers do not come back to check themselves, they would never know and hence miss the opportunity to complete the problem. Taking my own problem as an exmaple (https://www.mathworks.com/matlabcentral/cody/problems/44353), I did receive a comment on whether there exists a way to make the resolution of the solution map better. I do have a simple way to address this comment by truncating the extremely large solution size to a smaller upper limit (say 100) which would lead to much higher resolution on the solution map. But I didn't do so because it may change the current ranking of the solutions (as the solutions in my problem are measured by runtime speed, which may vary in different runs). I don't want to disappoint any solvers to my problems, so I didn't make any changes to my test suite. I do understand the dilemma here because it is extremely hard to make a perfect test suite for a hard problem, which is perhaps much harder than solving the problem.
on 3 Nov 2017 |
Peng Liu submitted a Comment to Problem 44374. Tautology @James. Blame me for the "more than 2 variables" comment? Absolutely nonsense! Commenting is one of Cody's core features which allows players, i.e., ALL OF US, to effectively discuss, share, and communicate on any aspects of a problem or solution, and this is how us players help to make Cody an exciting world. Remember that "Comment on any problem or solution" is the 5th top feature appearing in the definition of Cody (https://www.mathworks.com/matlabcentral/about/cody/) .
on 3 Nov 2017 |
Peng Liu submitted Solution 1324226 to Problem 44390. Test your luck! on 2 Nov 2017 |