Community Profile

# Kiyoto Matsumoto

##### Last seen: 3日 前
31 2018 年以降の合計貢献数

#### Kiyoto Matsumoto's バッジ

Pascal's Triangle
Given an integer n >= 0, generate the length n+1 row vector representing the n-th row of <http://en.wikipedia.org/wiki/Pascals_t...

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

Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

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

Find the Oldest Person in a Room
Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...

オーバーフローした値を飽和させずにラップさせる
お世話になります。 数値を加算した結果がオーバーフローした場合、 MATLABでは最近値に飽和するかと存じます。 これを飽和ではなくラップさせる方法はありますでしょうか。 現在は以下の様に対処しているのですが、下記例ですとuint32の範囲を超...

5ヶ月 前 | 1 件の回答 | 0

### 1

Project Euler: Problem 1, Multiples of 3 and 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23...

6ヶ月 前

Getting the indices from a vector
This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to <http://www.mathworks....

6ヶ月 前

Return the first and last character of a string
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

6ヶ月 前

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

6ヶ月 前

Kepler's Equation
Solve <http://en.wikipedia.org/wiki/Kepler's_equation Kepler's Equation>. Note that the solution is rounded down to 5 decima...

6ヶ月 前

Triangle sequence
A sequence of triangles is constructed in the following way: 1) the first triangle is Pythagoras' 3-4-5 triangle 2) the s...

6ヶ月 前

Length of a short side
Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...

6ヶ月 前

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

6ヶ月 前

Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

6ヶ月 前

Convert from Fahrenheit to Celsius
Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...

6ヶ月 前

Calculate Amount of Cake Frosting
Given two input variables |r| and |h|, which stand for the radius and height of a cake, calculate the surface area of the cake y...

6ヶ月 前

Remove the two elements next to NaN value
The aim is to *remove the two elements next to NaN values* inside a vector. For example: x = [6 10 5 8 9 NaN 23 9 7 3 21 ...

6ヶ月 前

Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

6ヶ月 前

Find nearest prime number less than input number
Find nearest prime number less than input number. For example: if the input number is 125, then the nearest prime number whi...

6ヶ月 前

Given a and b, return the sum a+b in c.

6ヶ月 前

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

6ヶ月 前

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

6ヶ月 前

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

6ヶ月 前

リアルタイムターゲットからのログの取得

8ヶ月 前 | 0 件の回答 | 0

### 0

8ヶ月 前 | 0 件の回答 | 0

### 0

Sample and Holdブロックと、入力＝出力としたTriggeredサブシステムの違い
お世話になります。 タイトルの通りですが、Sample and Holdブロックと、入力をそのまま出力に接続した Triggeredサブシステムの間に違いはあるのでしょうか。 下記の様に単純なモデルでは出力信号は一致している様ですが…。

10ヶ月 前 | 1 件の回答 | 0

### 1

EmbeddedCoderを利用してTI C2000マイコンにModbus RTU スレーブを実装
【動作環境】 ・MATLABバージョン R2019b ・EmbeddedCoder ・TI C2000ハードウェアサポートパッケージ ・LAUNCHXL-F28379D 評価ボード 上記の環境でTIマイコンボードにModbus通信（RTU ス...

12ヶ月 前 | 0 件の回答 | 0

### 0

LaTeXで行列に罫線を入れる,
ライブエディターでLaTeXを使用して画像の様な行列を記述したいのですが、 罫線を引く、および複数の行・列を使用して1字を表記するにはどの様にすれば良いでしょうか。 \begin{array}{c|cc}の様に表記すれば縦の罫線が入るかと思ったので...