Solved


Simple problem creating a function from an abstract specification.
MYSTERYFUNCTION3 This takes a vector of numbers v and computes a vector w such the w[i] is the average of v[i] and the previous...

nästan 6 år ago

Solved


Give prime Numbers upto n
You are given a input number x; print all the prime numbers less than equal to x.

nästan 6 år ago

Solved


R2012b atan in Degrees
Return in degrees the atan result of inputs for all four quadrants. *Examples:* [x, y] Degrees 1 0 0 1 1 ...

nästan 6 år ago

Solved


Perl 1: push
_This is part of a series of perl function which were very helpful for many perl programmers. Could you implement it in Matlab?_...

nästan 6 år ago

Solved


User defined nextpow function
Create a function which will take 2 arguments as n and x, and return y, where, n^y >= abs(x). [ Similar to builtin "nextpow2" fu...

nästan 6 år ago

Solved


Annual Salary
What is the annual salary of Mr. Cody if he works 40 hours a week and gets $x per hour and a yearly bonus of $2000? (Let, 50 wee...

nästan 6 år ago

Solved


ASCII Code
Using matlab, give the symbol that is associated with ASCii code 90.

nästan 6 år ago

Solved


How long does it take to run a bath?
Given the *volume flow rate* (volume/time) of a faucet and the *volume* of a bath tub, find the amount of time it takes to fill ...

nästan 6 år ago

Solved


Interior angles
Find the sum of interior angles for polygon of x sides.

nästan 6 år ago

Solved


Uniform binary crossover
Given two binary vectors, return the two children by combining the genes of them using a binary crossover mask. More informat...

nästan 6 år ago

Solved


union without repitition
Let a = [9 9 9 9 9 9 8 8 8 8 7 7 7 6 6 6 5 5 4 2 1] b = [1 1 1 3 3 3 3 3 4 4 4 4 4 10 10 10] Output should be [9 8...

nästan 6 år ago

Solved


Area of a Square
Given the length x of the side of a regular square, find the area of the square, A.

nästan 6 år ago

Solved


Log of a number
Write a script that will give the log of x as output.

nästan 6 år ago

Solved


Feeling lucky?
Guess which number Cody is thinking (1 to 10)? (This is a game of luck more than skill. Good luck!)

nästan 6 år ago

Solved


multiply an array by its position number
You have given an array. Multiply an array by its position number

nästan 6 år ago

Solved


Create a matrix with difference of each row of input matrix
With a given input matrix A, create a output matrix B in such a way that each row in B is a difference of rows of input matrix A...

nästan 6 år ago

Solved


Generate binary combinations for a given number of bit(s)
Generate the binary combination as in the example below. Example: If you are given: bin_comb(2) The answer will be: ...

nästan 6 år 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';

nästan 6 år ago

Solved


Hydrogens in a Saturated Hydrocarbon
Given (c) carbon atoms in a saturated hydrocarbon molecule (all single bonds), how many hydrogen atoms (h) are in the molecule?

nästan 6 år ago

Solved


What day is it?
Tell me what day is it. Return the full name of the day of the week as a string. e.g. It's June 12th 2014, so your function s...

nästan 6 år ago

Solved


Get 1-4-3-4-4
Get the value of the indices in the title and assign it to an array

nästan 6 år ago

Solved


Special Relativity 101.
Special relativity states that the effective mass of an object varies as a function of its velocity. If *c* is the speed of ligh...

nästan 6 år ago

Solved


Change matrix to vector2
From x = 4 3 5 1 5 1 To y = 4 3 5 1 ...

nästan 6 år ago

Solved


Is it column vector?
Is it column vector? Check vector for column vector without using iscolumn function.

nästan 6 år ago

Solved


Project Euler: Problem 16, Sums of Digits of Powers of Two
2^15 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26. What is the sum of the digits of the number 2^N? Thanks ...

nästan 6 år ago

Solved


find a specific element from an matrix
Find the element from matrix which is in 2nd row and 3rd column.

nästan 6 år ago

Solved


If you have matrix A, create matrix B using matrix A as an "element"
A = [1 2 3 4; 5 6 7 8] B = [1 2 3 4 1 2 3 4; 5 6 ...

nästan 6 år ago

Solved


Determine if a row vector has NaN
Determine if a row vector x has NaN

nästan 6 år ago

Solved


Usage of varargout
This Challenge is to demonstrate usage of varargout. Output a cell array using varargout of magic squares of size 1 thru n. ...

nästan 6 år ago

Solved


Is there a GPU Device?
Return true if there is a supported GPU device available on the Cody computer.

nästan 6 år ago

Load more