Tomohiko
MathWorks
Followers: 0 Following: 0
統計
All
Feeds
回答済み
重複ありの順列のパターンを列挙した行列を作る方法
1ベースの4進数を1から4^8-1まで並べるという考えで、次の方法はどうでしょうか? double(dec2base(1:(4^8-1),4))-double('0')+1
重複ありの順列のパターンを列挙した行列を作る方法
1ベースの4進数を1から4^8-1まで並べるという考えで、次の方法はどうでしょうか? double(dec2base(1:(4^8-1),4))-double('0')+1
3年以上 前 | 0
| 採用済み
解決済み
Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...
4年以上 前
解決済み
Longest run of consecutive numbers
Given a vector a, find the number(s) that is/are repeated consecutively most often. For example, if you have a = [1 2 2 2 1 ...
4年以上 前
解決済み
Back and Forth Rows
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...
12年以上 前
解決済み
Find the numeric mean of the prime numbers in a matrix.
There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...
12年以上 前
解決済み
Determine if input is odd
Given the input n, return true if n is odd or false if n is even.
12年以上 前
解決済み
Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...
12年以上 前
解決済み
Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...
12年以上 前
解決済み
Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...
12年以上 前
解決済み
Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...
12年以上 前