Problema


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

más de 6 años hace | 5 | 277 solvers

Resuelto


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

más de 6 años hace

Problema


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

más de 6 años hace | 5 | 286 solvers

Resuelto


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

más de 6 años hace

Problema


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

más de 6 años hace | 5 | 279 solvers

Resuelto


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

más de 6 años hace

Problema


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

más de 6 años hace | 9 | 300 solvers

Resuelto


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

más de 6 años hace

Problema


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

más de 6 años hace | 5 | 293 solvers

Resuelto


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

más de 6 años hace

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

más de 6 años hace | 2

| aceptada

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

más de 6 años hace | 1

Resuelto


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

más de 6 años hace

Problema


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

más de 6 años hace | 7 | 302 solvers

Resuelto


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

más de 6 años hace

Problema


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

más de 6 años hace | 3 | 305 solvers

Resuelto


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

más de 6 años hace

Problema


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

más de 6 años hace | 4 | 354 solvers

Resuelto


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

más de 6 años hace

Problema


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

más de 6 años hace | 4 | 302 solvers

Resuelto


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

más de 6 años hace

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

más de 6 años hace | 0

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

más de 6 años hace | 0

Problema


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

más de 6 años hace | 2 | 318 solvers

Resuelto


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

más de 6 años hace

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

más de 6 años hace | 1

| aceptada

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

más de 6 años hace | 2

| aceptada

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

más de 6 años hace | 2

| aceptada

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

más de 6 años hace | 0

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

más de 6 años hace | 0

Cargar más