Solved

行列内の素数の平均をとろう

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

4 months ago

Solved

Find the sum of the negative elements under the main diagonal.

Example Input A=[1 2; -3 0] Output -3

5 months ago

Solved

Calculating selling price

Cost of a Product is $x What should be the selling price if you want to gain 10%?

5 months ago

Solved

Pad zero between every adjacent values of the vector.

you are given a vector x. you have to make an output vector y with zeros padded between every adjacent values of x. e.g x: ...

5 months ago

Solved

Repeat the entries of the vector to their reference times in the vector.

e.g for input x: [ 7 3 9 5] output y: [ 7 3 3 9 9 9 5 5 5 5]

5 months ago

Solved

Add two different item as shown in example

Add two different item as shown in example x=5; y='ab'; Then output must be'5ab';

5 months ago

Solved

Try and Catch Simple Example

Try and Catch Simple Example <http://in.mathworks.com/help/matlab/ref/try.html Example> Vector x=[1 4 6 8 10]; Create...

5 months ago

Solved

Average speed for the entire trip

The input is two speeds (for the trip and return trip) and output is average speed. Assume units are consistent, say miles per h...

5 months ago