Community Profile

# Kiyoto Matsumoto

Last seen: 12 days ago Active since 2018

IWAKI CO., LTD.

Programming Languages:
MATLAB
Spoken Languages:
Japanese

All

#### Content Feed

View by

Solved

The Piggy Bank Problem
Given a cylindrical piggy bank with radius g and height y, return the bank's volume. [ g is first input argument.] Bonus though...

9 months ago

Solved

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

1 year ago

Solved

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

1 year ago

Solved

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

1 year ago

Solved

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

1 year ago

Solved

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

1 year ago

Solved

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

1 year ago

Question

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

1 year ago | 1 answer | 0

### 1

Solved

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

1 year ago

Solved

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

1 year ago

Solved

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

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

1 year ago

Solved

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

1 year ago

Solved

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

1 year ago

Solved

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

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

1 year ago

Solved

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

1 year ago

Solved

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

1 year ago

Solved

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

1 year ago

Solved

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

1 year ago

Solved

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

1 year ago

Solved

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

1 year ago

Solved

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

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

1 year ago

Solved

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

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

1 year ago

Question

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

2 years ago | 0 answers | 0

### 0

Question

2 years ago | 0 answers | 0

### 0

Question

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

2 years ago | 1 answer | 0

### 1

Question

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

2 years ago | 0 answers | 0