Solved

Draw 'I'

Given n as input, draw a n-by-n matrix 'I' using 0 and 1. example: n=3 ans= [0 1 0 0 1 0 0 1 0] n=...

más de 2 años ago

Solved

Draw 'C'.

Given x as input, generate a x-by-x matrix 'C' using 0 and 1 . example: x=4 ans= [0 1 1 1 1 0 0 0 ...

más de 2 años ago

Solved

Draw 'J'

Given n as input, generate a n-by-n matrix 'J' using 0 and 1 . Example: n=5 ans= [0 0 0 0 1 0 0 0 0 1 0 0 ...

más de 2 años ago

Solved

Draw 'O' !

Given n as input, generate a n-by-n matrix 'O' using 0 and 1 . example: n=4 ans= [1 1 1 1 1 0 0 1 ...

más de 2 años ago

Solved

Draw a 'X'!

Given n as input Draw a 'X' in a n-by-n matrix. example: n=3 y=[1 0 1 0 1 0 1 0 1] n=4 y=[1 0 0...

más de 2 años ago

Solved

Draw a 'N'!

Given n as input, generate a n-by-n matrix 'N' using 0 and 1 . Example: n=5 ans= [1 0 0 0 1 1 1 0 0 1 1 0 ...

más de 2 años ago

Solved

Find the area of a triangle having vertices (A,B), (C,D), and (E,F)

Find the area of a triangle using if we have the three vertices of the triangle

más de 2 años ago

Solved

Pizza order

A pizza order by phone in diameter d1, pizza will be make only in diameter d2. Return the pizza pieces p should be make.(pizza ...

más de 2 años ago

Solved

how many of the entries are positive?

Given x= sin(linspace(0,10*pi,100)), how many of the entries are positive?

más de 2 años ago

Solved

Draw a 'Z'.

Given _n_ as input, generate a n-by-n matrix like 'Z' by _0_ and _1_ . Example: n=5 ans= [1 1 1 1 1 0 0 0 1 ...

casi 3 años ago

Solved

Prime numbers between a , b.

Find all prime number between a & b. example: a=100 b=120 y= [101 103 107 109 113]

casi 3 años ago

Solved

Try your chance!!!

There is a bomb in 3 cell! You must find the bomb. choose one of these cells and try your chance: 1 2 3 ? ? ? ...

casi 3 años ago

Solved

Outlier number!

Find a number which has maximum distance from the mean value of vector A. Example: A=[5 2 1 5 6 2 5 9] y=9

casi 3 años ago

Solved

Calculate mean value of any pair in a vector.

Given a vector A, calculate the mean of 2 number in the vector one by one. example: input: A=[1, 5, 6, 8, 9, 15] output:...

casi 3 años ago

Solved

'Absolute value'

Create a function called own_abs, which is the absolute number entered as the input return value.

casi 3 años ago

Solved

Calculating the total earnings of a factory

The row vector, prods contains the number of various products manufactured per hour. The second row vector, prices holds values ...

casi 3 años ago

Solved

surface areas of a cylinder

There are 3 inputs: option, radius and height. If option= '1', compute the lateral surface area of the cylinder, for option 2 ca...

casi 3 años ago

Solved

Find parts of a circle.

Given radius (r) of a circle find the diameter (d), circumference (c), an area (a).

casi 3 años ago

Solved

Sum of diagonals

Compute the sum of diagonal elements of a square matrix and store the larger sum to s. Eg : a = [1 2 3; 2 3 4; 4 5 10] ...

casi 3 años ago

Solved

Basic matrix operations using standard MATLAB commands

Create the matrix: 1.0e+15 * 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000...

casi 3 años ago

Question

using xlsread, i want to bifurcate data in different columns separated by commmas in each row of a excel sheet.

I have a excel sheet containing author and their respective book titles separated by comma in each row. I want to separate the d...

casi 3 años ago | 1 answer | 0

Solved

Product of all elements in an array

Compute the product of all elements in an array.

casi 3 años ago

Solved

The great 82-year-old

Let's answer the question below; 'I am *x* years old and I have never written programs. If I study from now, will I be able ...

alrededor de 3 años ago

Solved

Tax Calculator

Calculate the tax for a given income. 10% tax is paid for any income up to $2,000. 20% tax is paid for additional income u...

alrededor de 3 años ago

Solved

Add a vector to a matrix

Given a matrix |mat| of size |mXn| and a row vector |v| of size |1Xs|, return a matrix with |m+1| rows that conatains |mat| over...

alrededor de 3 años ago

Solved

Eye Squared

For a positive integer |n| create the identity matrix with |n| elements. In case it is not possible to produce an identity ma...

alrededor de 3 años ago

Solved

determine amount cookies left

started with 3 cookies and you never ate any how many are left

alrededor de 3 años ago

Solved

Remove the first, third and fifth rows of a matrix

Given a matrix x with at least five rows, return a matrix y that includes all rows of x except for th 1st, the 3rd and 5th. E...

alrededor de 3 años ago