Risolto


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

7 mesi fa

Risolto


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

7 mesi fa

Risolto


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

7 mesi fa

Risolto


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

7 mesi fa

Risolto


Energy of an object
Calculate the total mechanical energy of an object. Total Energy= Potential energy + Kinetic energy P.E.=m*g*h K.E.=1/2...

7 mesi fa

Risolto


Angular Velocity

7 mesi fa

Risolto


Period of a pendulum

7 mesi fa

Risolto


Total energy

7 mesi fa

Risolto


Potential energy calculation

7 mesi fa

Risolto


Kinetic energy calculation

7 mesi fa

Risolto


Laws of motion 6

7 mesi fa

Risolto


Laws of motion 5

7 mesi fa

Risolto


Laws of motion 4
Given the initial velocity 'u', final velocity 'v' and acceleration 'a', find the distance travelled.

7 mesi fa

Risolto


Laws of motion 3

7 mesi fa

Risolto


Laws of motion 2

7 mesi fa

Risolto


Laws of motion 1

7 mesi fa

Risolto


Is A the inverse of B?
Given a matrix A and a matrix B, is A the inverse of B? >>A=[2,4;3,5]; >>B=[-2.5,2;1.5,-1]; >>isInverse...

7 mesi fa

Risolto


Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

7 mesi fa

Risolto


Converts numbers into characters
Converts numbers into characters

7 mesi fa

Risolto


Find the max element of the array
Find the max element of the array

7 mesi fa

Risolto


Calculate the average value of the elements in the array
Calculate the average value of the elements in the array

7 mesi fa

Risolto


to the 2 all elements
to the 2 all elements

7 mesi fa

Risolto


the average value of the elements
Calculate the average value of the elements in the array

7 mesi fa

Risolto


Double all elements in the array
Duplicate all elements in the array

7 mesi fa

Risolto


Draw a '0' in a one matrix!

7 mesi fa

Risolto


calculate the length of matrix
input 1 array, calculate the length

7 mesi fa

Risolto


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 mesi fa

Risolto


Divisible by n, prime vs. composite divisors
In general, there are two types of divisibility checks; the first involves composite divisors and the second prime divisors, inc...

7 mesi fa

Risolto


Divisible by 16
Write a function to determine if a number is divisible by 16. This can be done by a few different methods. Here are two: # If...

7 mesi fa

Carica altro