michio
MathWorks
Application Engineer at MathWorks Japan since 2014
Questions in Japanese are always welcome :)
Professional Interests: Data analytics, Machine Learning, Optimization, Finite element method, Computational Fluid Mechanics
DISCLAIMER: Any advice or opinions posted here are my own, and in no way reflect that of MathWorks.
Statistics
RANK
79
of 295,448
REPUTATION
1,962
CONTRIBUTIONS
3 Questions
427 Answers
ANSWER ACCEPTANCE
33.33%
VOTES RECEIVED
463
RANK
1,191 of 20,227
REPUTATION
1,570
AVERAGE RATING
4.80
CONTRIBUTIONS
27 Files
DOWNLOADS
143
ALL TIME DOWNLOADS
12467
CONTRIBUTIONS
146 Posts
CONTRIBUTIONS
2 Public Channels
AVERAGE RATING
50
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Feeds
Solved
Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2 3 3 3 4...
2 years ago
Solved
Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.
2 years ago
Solved
Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...
2 years ago
Solved
Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.
2 years ago
Solved
Get the length of a given vector
Given a vector x, the output y should equal the length of x.
2 years ago
Solved
Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...
2 years ago
Solved
Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...
3 years ago
Solved
行列内の素数の平均をとろう
行列が与えられたときに、その行列内の素数の平均を計算する関数を作成しましょう。 例: 入力の行列が in = [ 8 3 5 9 ] のとき、 出力が 4 あるいは (3+5)/2 のようになり...
4 years ago
Solved
ゼロでない要素が一番多い行を探そう
行列 a が与えられたとき、行列 a の中で一番ゼロの要素が少ない行のインデクス r を返す関数を作成しましょう。このとき、行列 a には一つだけしかこの条件に当てはまる行がないと仮定します。 例: 入力として、行列 a = [ 1 ...
4 years ago
Solved
ベクトルの値が増加しているかを調べよう
ベクトルの値が増加している場合 (ベクトルの各要素が前の要素よりも大きい場合) には true を、そうでない場合には false を返すようなコードを書いてみましょう。 例: 入力が x = [-3 0 7] のとき、 関数の...
4 years ago
Solved
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 years ago
Solved
Distance walked 1D
Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...
7 years ago
Solved
Determine if input is odd
Given the input n, return true if n is odd or false if n is even.
8 years ago
Solved
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...
8 years ago
Solved
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 ...
8 years ago
Solved
Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...
8 years ago