Solved


Rule of mixtures (composites) - upper bound
The <http://en.wikipedia.org/wiki/Rule_of_mixtures rule of mixtures> is used in the mechanical design of composite structures to...

3 years ago

Solved


Pi Digit Probability
Assume that the next digit of pi constant is determined by the historical digit distribution. What is the probability of next di...

3 years ago

Solved


Convert radians to degrees
Given input in radians, output to degrees

3 years ago

Solved


Pi Estimate 1
Estimate Pi as described in the following link: <http://www.people.virginia.edu/~teh1m/cody/Pi_estimation1.pdf>

3 years ago

Solved


Approximation of Pi (vector inputs)
Pi (divided by 4) can be approximated by the following infinite series: pi/4 = 1 - 1/3 + 1/5 - 1/7 + ... For a given numbe...

3 years ago

Solved


Approximation of Pi
Pi (divided by 4) can be approximated by the following infinite series: pi/4 = 1 - 1/3 + 1/5 - 1/7 + ... For a given number of...

3 years ago

Solved


Travelling Salesman Problem (TSP)
Find a short way through given points. This is the travelling salesman problem. But the solution should be a fast and small func...

3 years ago

Solved


JannaT is Loved By Me
JannaT was sTarTed loved by me and that time was in 2020. A year when JannaT will starT loving me when the year divided from th...

3 years ago

Solved


Rule of mixtures (composites) - lower bound
The <http://en.wikipedia.org/wiki/Rule_of_mixtures rule of mixtures> is used in the mechanical design of composite structures to...

3 years ago

Solved


Volume difference between Ellipsoid and Sphere
Given an ellipsoid of semi principal axis (a,b,c) find the volume of the difference between this ellipsoid and the sphere with...

3 years ago

Solved


Volume of a Simplex
Return the volume of a <http://en.wikipedia.org/wiki/Simplex regular _n_-simplex> with a unit side length. Results are up to...

3 years ago

Answered
for loopで計算処理を連番のフォルダに対して適応したい.連番のフォルダの変更方法
>1のフォルダから次の連番のフォルダを開いて、for loopで上記の処理をする imageDatastore を用いて下記を実行しています。 選択フォルダ以下の全画像を含めた imageDatastore を作成 (サブフォルダを含める。所定形式(...

3 years ago | 0

| accepted

Answered
for loopで計算処理を連番のフォルダに対して適応したい.連番のフォルダの変更方法
「現在開いているフォルダに対する処理」を複数のフォルダに対して実行していくには、 cd でフォルダを移動する必要が出てきて面倒です。その点、絶対パスを取り扱えばフォルダ移動が不要になります。 (追記):2000ファイルが100個のフォルダに20枚ずつ格...

3 years ago | 1

Answered
How to stop a for loop after comparing one value from an array with another value from another array?
How about reducing the nested loops? c_year = [0 2 3 4 6 7 8 10]; l_year = [1 5 9]; count = 1188; for j = 1:length(l_year) ...

3 years ago | 0

Solved


Radiation Heat Transfer — View Factors (1)
View factors (aka configuration factors) are utilized in some radiation heat transfer models to estimate heat transfer rates bet...

3 years ago

Solved


How to get the additive inverse of a uint8.
Given x as a uint8 find the additive inverse y.

3 years ago

Solved


Error handling
If the input is a negative number, generate an error. Otherwise, return the number.

3 years ago

Answered
回帰ツリービューアーをコマンドから①画像として保存,②閉じるにはどのようにすればよいでしょうか?
①「回帰ツリービューアー」をコマンドから画像として保存するにはどのようにすればよろしいでしょうか? 回帰木の表示 - MATLAB - MathWorks 日本 >コマンド ウィンドウで tree を保存するには、関数 findall および setdi...

3 years ago | 0

| accepted

Answered
ライセンス********購入済。現在surfaceで使用しているが、新規購入パソコンで使いたい。移行手順をご教示ください。
パソコン変更したときと対応について - MATLAB Answers - MATLAB Central (mathworks.com) アクティベーション停止手順を教えてください。 - MATLAB Answers - MATLAB Central (m...

3 years ago | 0

Solved


Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2 3 3 3 4...

3 years ago

Answered
There is a mistake while using condtional and for loop condtion.i got the value zero only. but i want values and here, A is subdiagonal, B is diagonal and C is superdiagonal.
The inside of the if sentence is never be executed even if i takes any value. i = 3; if i == 2:5 disp('true'); end i ==...

3 years ago | 0

Answered
csvデータを複数重ねてグラフ化し、値によって色分けする方法について
①peak2peakの使い方がおかしいでしょうか⇒おそらくYES  他の関数が適しているでしょうか⇒NO(peak2peak関数でOK) peak2peak関数を意図しない形で使っていると予想します。 CSVファイルはN行M列(Nは測定チャネル数、M...

3 years ago | 0

| accepted

Solved


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

3 years ago

Solved


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

3 years ago

Solved


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

3 years ago

Solved


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

3 years ago

Solved


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

3 years ago

Solved


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

3 years ago

Solved


チェッカーボードを作ろう
整数 n が与えられた時、以下の様な1と0を含むn×nの行列を作成しましょう。a(1,1) は1にする必要があります。 例: 入力 n = 5 出力 a が [1 0 1 0 1 0 1 0 1 0 ...

3 years ago

Solved


サイコロを作ろう
1から6までの独立かつランダムな数値を返すような関数を作成しましょう。 例: >> [x1,x2] = rollDice(); と入力すると x1 = 5 x2 = 2 のような解を返します。

3 years ago

Load more