Community Profile

photo

Kiyoto Matsumoto


Last seen: 2 dagen ago
31 total contributions since 2018

Kiyoto Matsumoto's Badges

  • Solver
  • First Review
  • Thankful Level 1
  • Knowledgeable Level 1
  • First Answer

View details...

Contributions in
View by

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

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

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

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

3 maanden ago

Solved


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

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

3 maanden ago

Question


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

6 maanden ago | 1 answer | 0

1

answer

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

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

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

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

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

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

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

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

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

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

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

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

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

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

7 maanden ago

Solved


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

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

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

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

7 maanden ago

Question


リアルタイムターゲットからのログの取得
下記コマンドでリアルタイムターゲット上からログを収集しているのですが、 シミュレーション停止後にしかログが得られないかと思います。 シミュレーション中に任意のタイミングでログを得る方法はありますでしょうか。 もし難しい場合、実行停止→ログ収集→再...

9 maanden ago | 0 answers | 0

0

answers

Question


Simulink Real-Timeでログデータに信号名を含ませる
以下のコードでリアルタイムターゲット(speedgoat)上からログデータを収集しています。 複数信号集録すると、ラベル等ついておらずどの信号か分かりづらいので モデル内の信号名を反映してログを取りたいのですが、方法はありますでしょうか。 tg = ...

9 maanden ago | 0 answers | 0

0

answers

Question


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

11 maanden ago | 1 answer | 0

1

answer

Question


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

ongeveer een jaar ago | 0 answers | 0

0

answers

Question


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

ongeveer 2 jaar ago | 1 answer | 0

1

answer

Load more