Replace all odd numbers in the vector or matrix with NaN. For example, if
x = [1 3 4 5 8 11];
y = [NaN NaN 4 NaN 8 Nan];
Please use isequaln instead of isequal when checking equality for NaN values.
P.S. I accidentally clicked "Like" to this problem and then realized that the "Unlike" function doesn't work. Also, the "Delete" comment function still doesn't work despite the fact that this has been reported since September or even earlier.
This problem has been improved and the test suite fixed.
Peng, the problem with deleting your own comments has been an issue for three or four years now. I didn't realize that Unlike isn't working either, though.
James, Peng, that surprises me. I thought it doesn't work since the new layout introduction. I had no problems with deleting my comments before. (or it's just a typo, and James meant months)
James, Peng, I have also reported these bugs (unable to "delete", unable to "unlike"), and can confirm that (at least for me) they are still a problem. A further complication is that there is no dedicated 'channel' for reporting Cody issues. Perhaps also a Cody-specific discussion forum would be helpful. —DIV
@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.
FYI (again), in lieu of a proper forum, occasionally there are some interesting discussions in the Problem Comments sections of individual problems. An example is https://www.mathworks.com/matlabcentral/cody/problems/2959-divide-by-4 . They are, however, extremely difficult to find. Regards, DIV.
"standardizeMissing" is introduced in R2013b, not
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.
Back and Forth Rows
Back to basics 14 - Keywords
Celsius to Kelvin
Number of odd and even elements within matrix
Where is the number that you want to find?
Sum the rows
find the 'M'
true or false
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office