Solved


Matrix FUN
Given a Matrix M, find out the number of elements of matrix that are divisible by 3. M = [1 2 3;4 5 6;7 8 9]; ou...

5 meses ago

Solved


Back to Basics - Find no. of elements in a matrix?
Let A be a m*n matrix. Find the total no. of elements in A ? (Hint - formula based) A = [1 2 3;4 5 6]; output = 6

5 meses ago

Solved


Find the sum of n squares
What is the sum of the squares of the first n integers?

5 meses ago

Solved


Write a code that will follow the equation y = x * (x + x) * x.
If x = 5, y = 5 * (5+5) * 5 = 250

5 meses ago

Solved


Unit conversion
Convert x degree Celsius to y degree Fahrenheit.

5 meses 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 ...

5 meses ago

Solved


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

5 meses 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...

5 meses ago

Solved


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

5 meses ago

Solved


ASCII code of a leter.
Given the letter, the output will show the corresponding ASCII code.

5 meses ago

Solved


Corresponding letter to ASCII code.
Given the letter, the output will show the corresponding ASCII code.

5 meses ago

Solved


Vector with a repeated entry
Create a row vector of length n, filled with 4's. For example, if n = 3, output = [4 4 4] Hint: Search for the function...

5 meses ago

Solved


Square root of a number
Write a code that will output the square root of x.

5 meses ago

Solved


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

5 meses ago

Solved


Hardy-Ramanujan number
Find the first Hardy-Ramanujan number.

5 meses ago

Solved


prime test
find largest 2 digit prime number

5 meses ago

Solved


prime test 2
enter the only non prime,non composite number

5 meses ago

Solved


Find Sine Function

5 meses ago

Solved


multiply by 7

5 meses ago

Solved


Multiply by 14

5 meses ago

Solved


Round to nearest integer

5 meses ago

Solved


Reindex a vector
You are given two vectors of equal length. Vector N has numeric values (no Inf or NaN) while vector IDX has integers. Place th...

5 meses ago

Solved


Remove the two elements next to NaN value
The aim is to *remove the two elements next to NaN values* inside a vector. For example: x = [6 10 5 8 9 NaN 23 9 7 3 21 ...

5 meses ago

Solved


Fibonacci Decomposition
Every positive integer has a unique decomposition into nonconsecutive Fibonacci numbers f1+f2+ ... Given a positive integer n, r...

5 meses ago

Solved


(Linear) Recurrence Equations - Generalised Fibonacci-like sequences
This problem is inspired by problems <http://uk.mathworks.com/matlabcentral/cody/problems/2187-generalized-fibonacci 2187>, <htt...

5 meses ago

Solved


Is X a Fibonacci Matrix?
In honor of Cleve's new blog and post: <http://blogs.mathworks.com/cleve/2012/06/03/fibonacci-matrices/> Is X a Fibonacci ...

5 meses ago

Solved


How many Fibonacci numbers?
Find the number of unique Fibonacci numbers (don't count repeats) in a vector of positive integers. Example: x = [1 2 3 4...

5 meses ago

Solved


Project Euler: Problem 2, Sum of even Fibonacci
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 te...

5 meses ago

Solved


Number of Even Elements in Fibonacci Sequence
Find how many even Fibonacci numbers are available in the first d numbers. Consider the following first 14 numbers 1 1 2...

5 meses ago

Load more