Flip the diagonal values
Write a program that flip the elements of main diagonal , upper and lower diagonal values of a sqare matrix.
For example if a ...
2年弱 前
解決済み
swap sign sum & multiply castles
It is an easy problem, if you know the answer.
Given a square matrix of NxN ordinary numbers.
Initially place N identical indi...
2年弱 前
解決済み
Flipping a Matrix
Flipping matrix up and down.
If a central row is exists, leave it, and flip remaining rows.
Example
Mat = magic(3)
...
2年弱 前
解決済み
Flip the bit
Given an input character string (e.g. '1001'), return a character string with the bits flipped ('0110').
2年弱 前
解決済み
Flipping
Write code that can reverse the vector without using any sort of loop.
Example
Given the input vector
A = [ 1 2 3 4 5...
Swap Characters of a Single Word
Description:
In the given input word, convert the lower case to upper case and vice versa.
A to a, a to A ...
Example:
'Matl...
2年弱 前
解決済み
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...