解決済み


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

3年以上 前

解決済み


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

3年以上 前

解決済み


文字列の最初と最後の文字だけ抜き出しましょう。
文字列の最初と最後の文字をつなげて返すような関数を作成しましょう。 もし文字が一つしかない場合、その文字は最初と最後の文字のため、関数はその文字を二回返すようにしておきましょう。 例: stringfirstandlast('borin...

3年以上 前

解決済み


ベクトル [1 2 3 4 5 6 7 8 9 10] の作成
MATLABでは,角括弧の中に要素を入れることで、ベクトルを作成できる。 x = [1 2 3 4] また次のようにも書ける(コンマはオプション)。 x = [1, 2, 3, 4] 問題:次のベクトルを出力する関数を作成せよ。...

3年以上 前

解決済み


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

3年以上 前

解決済み


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

3年以上 前

解決済み


ベクトルのスケーリング
入力したベクトルの大きさを1にしてください。

3年以上 前

解決済み


Basic Mathematics 8
A robot is extending its arm and attempting to reach a game piece that is X” away and Yg ” off the ground. The base of the arm i...

3年以上 前

解決済み


Find the mass of a rod
Determine the mass (in grams) of a rod of length L cm if it is in equilibrium per the diagram. In the diagram L1, L2, L3 are di...

3年以上 前

解決済み


Find the force required to support a lever
Students are designing a robot that will lift a block to the equilibrium position for transport to the scoring area. They have d...

3年以上 前

解決済み


Calculate load on arm 1
A robot is designed with a motor directly attached at the pivot point of the lifting arm. The L inch arm has a weight of W1 lbs...

3年以上 前

解決済み


Magnitude of Balancing Force
A box weighing W1 pounds is placed where its center of mass is located d1 ft from the fulcrum. A balancing force is placed at th...

3年以上 前

解決済み


Electrical Diode Current Calculation
In engineering, there is not always a single equation that describes a phenomenon accurately enough to be applied in all instanc...

3年以上 前

解決済み


Matrix Pattern 9

3年以上 前

解決済み


Matrix Pattern 8

3年以上 前

解決済み


Matrix Pattern 7

3年以上 前

解決済み


Matrix Pattern 6

3年以上 前

解決済み


Matrix Pattern 10

3年以上 前

解決済み


Matrix Pattern 5

3年以上 前

解決済み


Matrix Pattern 4

3年以上 前

解決済み


Matrix Pattern 3

3年以上 前

解決済み


Matrix Pattern 2

3年以上 前

解決済み


Matrix Pattern 1

3年以上 前

解決済み


Find Logic 16

3年以上 前

解決済み


Find Logic 14

3年以上 前

解決済み


Find Logic 15

3年以上 前

解決済み


Find Logic 12

3年以上 前

解決済み


Find Logic 11

3年以上 前

解決済み


Find Logic 8

3年以上 前

解決済み


Find Logic 7

3年以上 前

さらに読み込む