Problem


対称で、n*2n のサイズの行列を作成しましょう
サイズが n*2n の "mirror" 行列(対称行列)を作成しましょう。 例: n=2 の場合、以下のような出力を返します。 m = [ 1 2 2 1 1 2 2 1 ] n = 3 の場合、以下のよう...

6 years ago | 5 | 275 solvers

Solved


"mirror" matrix
Create n x 2n "mirror" matrix of this type: Examples For n = 2 m = [ 1 2 2 1 1 2 2 1 ] For n = 3 m = ...

6 years ago

Problem


英語の文章内の母音を取り除くコードを書きましょう。
与えられた英語の文章内の母音を取り除きましょう。 例: 入力 s1 が 'Jack and Jill went up the hill' の場合、 出力 s2 は 'Jck nd Jll wnt p th hll' * (英語版) ...

6 years ago | 5 | 284 solvers

Solved


Remove the vowels
Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

6 years ago

Problem


テレビのサイズを求めてみよう
あなたは電気屋で働いています。 あなたの電気屋にテレビを買いに来たお客さんに「何インチのテレビを買いたいのか」と質問したところ、対角線の情報しかわからないと言われてしまいました。 しかし、テレビのインチを知るには、幅と高さの情報が必要です。 ...

6 years ago | 5 | 277 solvers

Solved


What's size of TV?
Many people buy TV. Usually they ask about diagonal. But also important are width and height. Let's assume that all TV have rati...

6 years ago

Problem


NaN (欠損値) が含まれている行を削除しよう
行列 A が与えられたとき、その行列の中に NaN (Not a number; 欠損値) の要素がある行を見つけ出し、その行を削除しましょう。 例: A = [ 1 5 8 -3 NaN 14 ...

6 years ago | 9 | 297 solvers

Solved


Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

6 years ago

Problem


特定の値がベクトル内に含まれているかを確認するコードを書こう
ベクトル b にあるスカラ値 a が含まれていれば出力として 1 を返し、含まれていなければ 0 を返すような関数を作成しましょう。 例: a = 3; b = [1,2,4]; スカラ値 3 はベクトル b に含まれていない...

6 years ago | 5 | 291 solvers

Solved


Check if number exists in vector
Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

6 years ago

Answered
プロットの範囲指定
ベクトル N の2番目から最後までであれば、N(2:end) で表現できます。前回の質問のコードですと plot(N(2:end),y(2:end)) となります。 2番目から最後ではなく、たとえば5番目から8番目であれば N(5:8)...

6 years ago | 2

| accepted

Answered
背景を透明('none')にしたプロットのみのFigureを.pngもしくは.tifで出力するにはどうすれば良いですか.
この問題は Figure の仕様です。 ドキュメントの *Figure の外観* の Color セクションに、次のような文章があります。 'none' を指定した場合、背景色は画面上では黒く表示されますが、Figure を印刷するとその背景は...

6 years ago | 1

Solved


2倍してみよう - ここからスタート!
初めにこの問題を試してみよう。 入力としてxを与え、それを2倍して結果をyに代入せよ。 Examples: Input x = 2 Output y is 4 Input x = 17 Output y is 34 ...

6 years ago

Problem


ゼロでない要素が一番多い行を探そう
行列 a が与えられたとき、行列 a の中で一番ゼロの要素が少ない行のインデクス r を返す関数を作成しましょう。このとき、行列 a には一つだけしかこの条件に当てはまる行がないと仮定します。 例: 入力として、行列 a = [ 1 ...

6 years ago | 7 | 299 solvers

Solved


Most nonzero elements in row
Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

6 years ago

Problem


行列内の素数の平均をとりましょう。
行列が与えられたときに、その行列内の素数の平均を計算する関数を作成しましょう。 例: 入力の行列が in = [ 8 3            5 9 ] のとき、 出力が 4 あるいは (3+5)/2 のようになり...

6 years ago | 3 | 302 solvers

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

6 years ago

Problem


加重平均を計算しよう。
二つの同じ長さのベクトルが与えられたときの加重平均を求めましょう。 例: 二つのベクトル [1 2 3] と [10 15 20] が与えられたとき、 それぞれの要素ごとの加重を考慮した上で平均を取ると、 解は 33.3333 となり...

6 years ago | 4 | 352 solvers

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

6 years ago

Problem


二乗になっている数を見つけましょう。
ある数のベクトルが与えられた場合、そのベクトルの要素の一つが他の要素の二乗であれば true を返し、それ以外の場合は false を返すようなコードを書いてみましょう。 例: 入力が a = [2 3 4] のとき、 出力 b は t...

6 years ago | 4 | 299 solvers

Solved


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

6 years ago

Answered
Required toolbox for my research
We do not know about your research, so probably we cannot give you a good advice. Please talk to the Sales Rep in your count...

6 years ago | 0

Answered
finding the 10 biggest values in a cell array
Use <https://www.mathworks.com/help/matlab/ref/cell2mat.html cell2mat> and <https://jp.mathworks.com/help/matlab/ref/find.html f...

6 years ago | 0

Problem


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

6 years ago | 2 | 315 solvers

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

6 years ago

Answered
fitrgpのエラー対応
現在、グラム行列(カーネル値の行列)が特異行列に近くなっているためにコレスキファクタを計算できないことでエラーが生じているようです。(つまり有効なカーネルの必要条件を満たしていない) エラーメッセージには以下のような文章があります。 fit...

6 years ago | 1

| accepted

Answered
simplex法に範囲制約を加えて多変数関数の最小値を求める方法
File Exchange で提供されている <http://jp.mathworks.com/matlabcentral/fileexchange/8277-fminsearchbnd--fminsearchcon FMINSEARCHBND> はい...

6 years ago | 2

| accepted

Answered
カラーマップの軸の表示を変更するには?
ラベルの部分を変更する方法はコードベースとGUIベースの2通りの方法があります。 *1. コードベースで変更する方法* xxTickLabel というプロパティを変更します。xx部分はX/Y/Z軸 によって X/Y/Z が入ります。 この...

6 years ago | 2

| accepted

Answered
deep learning toolbox for semantic segmentation
In case you are still wondering how to use SegNet on MATLAB, Semantic Segmentation feature is released in R2017b Computer Vision...

6 years ago | 0

Answered
How can I extract number/letter part from this binary image ?
This example would help - this is part of OCR example, but what it does first (- Step 4) is extracting the area of letters by re...

6 years ago | 0

Load more