Dyuman Joshi - MATLAB Cody - MATLAB Central

Dyuman Joshi

9
Rank
70
Badges
46061
Score
101 – 150 of 5,072

Dyuman Joshi submitted a Comment to Problem 60341. Family Savings Analysis

IMO, it would be better to use strcmp() to compare for text data, instead of isequal(). Otherwise, data type conversion has to be performed, which is unnecessary (for a lack of a better word).

on 16 Jun 2024

Dyuman Joshi submitted a Comment to Solution 6614184

This is just not it.

on 16 Jun 2024

Dyuman Joshi submitted a Comment to Problem 59816. Sun angle

Added a test suite to cover time before 6 am and rescored solutions.

on 15 Jun 2024

Dyuman Joshi submitted a Comment to Solution 210138

Then this answer gets rescored to be incorrect.

on 12 Jun 2024

Dyuman Joshi submitted a Comment to Solution 13476846

There is a mistake.

on 12 Jun 2024

Dyuman Joshi submitted a Comment to Problem 59856. Calculate the Area of the Ring

Updates - > Comparing outputs using tolerance has been fixed. > Tolerance modified as per values used. @Abdelrahman Adel, you should check the updated test suite for future reference.

on 12 Jun 2024

Dyuman Joshi submitted a Comment to Problem 59866. Determine if the square root is an integer.

Unfortunately, this question has been repeated too many times. This problem will be deleted soon.

on 12 Jun 2024

Dyuman Joshi submitted a Comment to Problem 60206. Find Next Strictly Greater Element

Just like #60186, this is a misleading problem as well. Will be interesting to find an efficient method for it - both speed and memory wise.

on 12 Jun 2024

Dyuman Joshi submitted a Comment to Solution 13813221

Pairing arrayfun(), find(), cellfun() and cell2mat() in a single function seems inefficient. Something other that is slow which might go unnoticed is changing data-types of an existing variable. Of course, I am aware that this answer is written on and for Cody, but sometimes practices might sneak into writing actual code (speaking from experience).

on 12 Jun 2024

Dyuman Joshi submitted a Comment to Solution 13965401

Also, how much difference would it make to use "eye(numel(L),'logical')" ?

on 11 Jun 2024

Dyuman Joshi submitted a Comment to Problem 60186. Remove Unique Elements

This feels like quite a deceptive question. Looks easy but gets tricky to work it out for larger inputs.

on 11 Jun 2024

Dyuman Joshi submitted a Comment to Solution 13965401

I wonder how creation of large matrices via == comparison affects the performance of the code.

on 11 Jun 2024

Dyuman Joshi submitted a Comment to Solution 13839151

Just a fyi - arrayfun(), and other related functions, are quite slow. Though that is not reflected in such a small test suite (both # of test cases and the sizes of each test case), it will be apparent in practice where there is a time (and maybe memory) constraint.

on 11 Jun 2024

Dyuman Joshi submitted a Comment to Problem 1074. Property dispute!

Test suite has been updated to use isempty() to check for [ ].

on 11 Jun 2024

Dyuman Joshi submitted a Comment to Problem 60161. Finding area of a triangle.

This particular question has been asked as a problem too many times. It will be deleted soon.

on 9 Jun 2024

Dyuman Joshi submitted a Comment to Problem 60091. Find the square root of x

This particular question has been asked as a problem too many times. It will be deleted soon.

on 9 Jun 2024

Dyuman Joshi submitted a Comment to Problem 60321. Area of right triangle

This particular question has been asked as a problem too many times. Will be deleted soon.

on 9 Jun 2024

Dyuman Joshi submitted a Comment to Problem 60316. Determine the potential energy in a springrope which hangs over from a bridge

@Lukas Kocian, please give atleast 4 test cases when making a question to ensure - that the quality of the problem submitted is good - that the problem can not be solved via hard-coded submissions As the question is not clear to me, nor does the test suite (or rather the test case) help me find a logic, I can not update it, only you can. Please make the changes within 1 week of this comment. After that, I will 'Unpublish' this question.

on 9 Jun 2024

Dyuman Joshi submitted a Comment to Problem 60436. switch base

Thank you for your comments - Chris, Christian and William. The test suite has been update to resolve the issues. This problem can now be attempted.

on 9 Jun 2024

Dyuman Joshi submitted a Comment to Solution 242831

Well, the logic of OP's question was based on a toolbox function (which were accessible for the initial time period of Cody, but the access was rescinded after a short time only)

on 17 Mar 2024

Dyuman Joshi submitted a Comment to Problem 1497. Make combination of two given matrices.

The incorrect test suite has been corrected. However, the main problem is still the lack of test cases, which only OP can rectify.

on 17 Mar 2024

Dyuman Joshi submitted a Comment to Solution 1772537

@Josh, that's because the assertion in the test cases is not on the right variable. I can't believe this question has gone so long without anyone noticing this. I will update the test suite soon.

on 25 Feb 2024

Dyuman Joshi submitted a Comment to Problem 59656. Orthogonalize 3 column vectors using the Gram-Schmidt process

Nice problems (This one and #59651) @Ryan, but you should put atleast 3 test cases in a problem to avoid hard-coded/look-up table solutions. You could also add a test case to check for some restrictions on the code. (Check mine or ChrisR's recent questions to get an idea about this).

on 25 Feb 2024

101 – 150 of 5,072
Go to top of page