Poll


Do you have the tab key insert spaces instead of tabs?

2 years ago | 1810 votes | 5 comments

Discussion


Congratulations to William!
I was browsing the MathWorks website and decided to check the Cody leaderboard. To my surprise, William has now solved 5,000 pro...

2 years ago | 16

Solved


Creating a matrix by taking shifted copies of a given vector v as columns
This problem is the same as the problem 761 except that here we are testing it for any given vector ; a row or column vector. Th...

2 years ago

Discussion


+1 for Backwards Loops!
Base case: Suppose you need to do a computation many times. We are going to assume that this computation cannot be vectorized. ...

2 years ago | 15

Discussion


Trick: Easy Digit Manipulation
There are a host of problems on Cody that require manipulation of the digits of a number. Examples include summing the digits of...

2 years ago | 4

Poll


My favorite type of Cody problem is:

2 years ago | 117 votes | 2 comments

Poll


Which of the following is not a built-in string-checking function?

2 years ago | 2455 votes | 6 comments

Poll


How many spaces per tab do you prefer?

2 years ago | 6419 votes | 10 comments

Solved


Update course numbers and abbreviations
Suppose that the educational institution where you teach purchases new software to handle many essential functions, including co...

2 years ago

Solved


Remove a specific character with another
Remove any (-) dash sign with (_) underscore Ex = 'The-Journey-of-thoudsands-miles-starts-with-a-single-step' y = 'The_Jour...

2 years ago

Solved


Swap between first and last
The idea is to swap between first and last row Ex = [1 2 3 4 5; 1 2 3 4 5; 1 2 3 4 5; 1 2 3 4 5; ...

2 years ago

Solved


Swap between first and last column
The idea is to swap between first and last column Ex = [1 2 3 4 5; 1 2 3 4 5; 1 2 3 4 5; 1 2 3 4 5; 1 2 3 ...

2 years ago

Poll


Which of the following produces a false value?

2 years ago | 1324 votes | 2 comments

Answered
Smart Indenting now Removes Whitespace
Release 2024a includes a setting for this!! The following code will stop smart indenting from removing white space: s = setting...

2 years ago | 2

| accepted

Answered
Unwanted editor behavior: whitespace only lines trimmed
Release 2024a includes a setting for this!! The following code will stop smart indenting from removing white space: s = setting...

2 years ago | 1

Answered
Smart indent new bheaviour (removing whitespaces) is messing with Git
Release 2024a includes a setting for this!! The following code will stop smart indenting from removing white space: s = setting...

2 years ago | 1

Solved


Swap between rows
The idea is to swap between second and second last row Ex = [1 2 3 4 5; 5 4 3 2 1; 1 2 3 4 5; 1 2 3 4 5; ...

2 years ago

Solved


Swap between columns
The idea is to swap between second and second last column Ex = [1 2 3 4 5; 1 2 3 4 5; 1 2 3 4 5; 1 2 3 4 5; ...

2 years ago

Solved


Remove a specific column with min value
Remove the column that contain the min value in the matrix?

2 years ago

Solved


Remove a specific column with max value
Remove the column that contain the max value in the matrix?

2 years ago

Solved


Remove a specific row with min value
Remove the row that contain the min value in the matrix?

2 years ago

Solved


Remove a specific row with max value
Remove the row that contain the max value in the matrix?

2 years ago

Solved


Find Rows with Specift Properities
Delete rows with specific properites as following: Find rows that have a negative value in any element of the row and delete it...

2 years ago

Solved


Summation of Non Zeros Numbers in String Variable
Find the Summation of Non Zeros Numbers in String Variable The input : x = '100205' The Output : y = 8

2 years ago

Load more