# michio

### MathWorks

Last seen: 1 giorno fa Attivo dal 2016

Followers: 2   Following: 0

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.

All

#### Feeds

Visto da

Risolto

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...

oltre un anno fa

Risolto

Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

oltre un anno fa

Risolto

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 ...

oltre un anno fa

Risolto

Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

oltre un anno fa

Risolto

Find max
Find the maximum value of a given vector or matrix.

oltre un anno fa

Risolto

Get the length of a given vector
Given a vector x, the output y should equal the length of x.

oltre un anno fa

Risolto

Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

oltre un anno fa

Risolto

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...

oltre un anno fa

Risolto

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 ...

oltre 3 anni fa

Risolto

oltre 4 anni fa

Risolto

ゼロでない要素が一番多い行を探そう

oltre 4 anni fa

Risolto

ベクトルの値が増加しているかを調べよう
ベクトルの値が増加している場合 (ベクトルの各要素が前の要素よりも大きい場合) には true を、そうでない場合には false を返すようなコードを書いてみましょう。 例: 入力が x = [-3 0 7] のとき、 関数の...

oltre 4 anni fa

Risolto

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...

oltre 4 anni fa

Risolto

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...

quasi 7 anni fa

Risolto

Is my wife right?
Regardless of input, output the string 'yes'.

quasi 8 anni fa

Risolto

Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

quasi 8 anni fa

Risolto

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...

quasi 8 anni fa

Risolto

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 ...

quasi 8 anni fa

Risolto

Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

quasi 8 anni fa