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 ...
4ヶ月 前
解決済み
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;
...
4ヶ月 前
解決済み
Swap two numbers
Example
Input:
a = 10
b = 20
Output
a = 20
b = 10
4ヶ月 前
解決済み
Count trailing zeros in a primorial
<https://www.mathworks.com/matlabcentral/cody/problems/44068-the-number-of-trailing-zero-digit-of-a-factorial Cody Problem 44068...
4ヶ月 前
解決済み
Project Euler: Problem 7, Nth prime
By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13.
What is the Nth prime numb...
4ヶ月 前
解決済み
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...
4ヶ月 前
解決済み
Column Removal (★★★)
(copy of prob 7)
Remove the nth column from input matrix A and return the resulting matrix in output B.
So if
A = [1 2...