Solved

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

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

3 months ago

Solved

Calculating selling price

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

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

3 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]

3 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';

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

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

3 months ago

Solved

Change the first and last diagonal element of the identity matrix to zero

Starting with the identity matrix, change first and last diagonal element to zero. Example If n=5 A = 0 0 ...

3 months ago

Solved

Count me in

Count the number of occurrences of the second input in the first input Ex. x1 = 12344455511; x2 =2; output = 1 ...

3 months ago