Resuelto


Which coins to give
I was in shop today. I admired, how shop assistant had to think, which coins to give me. The task is we have a vector v=[0.5 0....

alrededor de 5 años hace

Resuelto


BASICS - sum part of vector
Please make a function, where as input you get vector "x" and and vector "c", where in "c" vector you get indexes to sum. Examp...

alrededor de 5 años hace

Resuelto


cross in array
Make a cross from "1" in odd size array. Other value from array should be equal to "0"; As input you get length of side of arra...

alrededor de 5 años hace

Resuelto


angle in regular polygon
Make a function which returns measure of interior angle in x-side regular polygon. x is as input. Please pay attention, that 1 ...

alrededor de 5 años hace

Resuelto


Is my wife right? Now with even more wrong husband
Again, as in "Is my wife right?" ( <http://www.mathworks.com/matlabcentral/cody/problems/149-is-my-wife-right> ), answer 'yes' r...

alrededor de 5 años hace

Resuelto


Sudoku square
We have a small Sudoku square, but one number is missing. x = [ 1 5 4 8 6 3 0 9 7 ] Make a function, wher...

alrededor de 5 años hace

Resuelto


Right shift an array n times with constant space.
Right shift an array n times with constant space, that is, no extra array can be used. Right shift operation: Last element com...

alrededor de 5 años hace

Resuelto


Find the number of days in a given year
Given a year number (eg. 2000) as input, find how many days are there in the given year.

alrededor de 5 años hace

Resuelto


Symmetric matrix
You must create a n-by-n *symmetric* matrix such that A(row,col) = row/col for col >= row. Example if n =3 : output is : ...

alrededor de 5 años hace

Resuelto


We love vectorized solutions. Problem 1 : remove the row average.
Given a 2-d matrix, remove the row average from each row. Your solution MUST be vectorized. The solution will be tested for ac...

alrededor de 5 años hace

Resuelto


Add two numbers
Add two numbers (For beginners)

alrededor de 5 años hace

Resuelto


Area of a Square
Inside a square is a circle with radius r. What is the area of the square?

alrededor de 5 años hace

Resuelto


Find the largest value in the 3D matrix
Given a 3D matrix A, find the largest value. Example >> A = 1:9; >> A = reshape(A,[3 1 3]); >> islargest(A) a...

alrededor de 5 años hace

Resuelto


Is my wife right?
Regardless of input, output the string 'yes'.

alrededor de 5 años hace

Resuelto


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

alrededor de 5 años hace

Resuelto


Factorize THIS, buddy
List the prime factors for the input number, in decreasing order. List each factor only once, even if the factorization includes...

alrededor de 5 años hace

Resuelto


Get all prime factors
List the prime factors for the input number, in decreasing order. List each factor. If the prime factor occurs twice, list it as...

alrededor de 5 años hace

Resuelto


Flow rate in a pipe

alrededor de 5 años hace

Resuelto


Squares inside a square!

alrededor de 5 años hace

Resuelto


STOP that car!!!
The maximum allowed speed for this road is 100. Find the cars that didn't observe the speed limit Arrest and fine them!!!

alrededor de 5 años hace

Resuelto


Find the second biggist number in a vector or a matrix

alrededor de 5 años hace

Resuelto


Calculate the structural rank of a 2-by-4 matrix.

alrededor de 5 años hace

Resuelto


Summation of integers

alrededor de 5 años hace

Resuelto


print

alrededor de 5 años hace

Resuelto


sign function

alrededor de 5 años hace

Resuelto


step function

alrededor de 5 años hace

Resuelto


Get the side length by using the law of cosines.

alrededor de 5 años hace

Resuelto


imaginary

alrededor de 5 años hace

Resuelto


Real

alrededor de 5 años hace

Resuelto


area

alrededor de 5 años hace

Cargar más