Resuelto


How many hours are there in a day in Italy?
Remember "European Summer Time"

4 meses hace

Resuelto


Calculate the answer to life the universe and everything
<https://en.wikipedia.org/wiki/42_(number)>

4 meses hace

Resuelto


Calculate the hypotenuse of a right triangle without using ^ and sqrt ()
Find out the hypotenuse of right triangle. Say a = 4, b = 3 then c = 5 Please don't use ^ and sqrt() function.

4 meses hace

Resuelto


Negative without '-'
Simple: return a negative number without using the '-' sign. Thanks to Problem <https://www.mathworks.com/matlabcentral/cody/...

4 meses hace

Resuelto


Find third Side of a right triangle given hypotenuse and a side. No * - or other functions allowed
Find the remaining side of a triangle given the hypotenuse and a side. However, the normal functions and symbols are not allowe...

4 meses hace

Resuelto


Compute LOG(1+X) in natural log
Compute LOG(1+X) in natural log

4 meses hace

Resuelto


Calculate sin(x) without sin(x)
Calculate y = sin(x) x = 0 -> y= 0 without the use of sin(x) or cos(x)

4 meses hace

Resuelto


Calculate cosine without cos(x)
Solve cos(x). The use of the function cos() and sin() is not allowed.

4 meses hace

Resuelto


calculate PI without using pi function
There are many methods to get the pi(Ratio of circumference to diameter). You should get pi without using the pi function in M...

4 meses hace

Resuelto


Calculate the number of elements in a matrix.
Calculate the number of elements in a matrix.

4 meses hace

Resuelto


sum all digits
input = 123456789, output = 1+2+3+4+5+6+7+8+9 = 45

4 meses hace

Resuelto


Matrix Max Finder
Output the maximum value in a matrix

4 meses hace

Resuelto


true or false
if the matrix has a zero, return true. else, return false

4 meses hace

Resuelto


Do Fast Fourier Transformation
Example Fast Fourier Transformation from vector [2,1]) ans = 3 1

4 meses hace

Resuelto


Remove white space from the string
Remove the white spaces (trailing and leading) from the input variable

4 meses hace

Resuelto


Back to basics 3 - Temp Directory
Covering some basic topics I haven't seen elsewhere on Cody. Return a string that is the path to the system's current temp di...

4 meses hace

Resuelto


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]

4 meses hace

Resuelto


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

4 meses hace

Resuelto


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

4 meses hace

Resuelto


Corresponding ASCII code.
Given the number, the output will show the corresponding ASCII code.

4 meses hace

Resuelto


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

4 meses hace

Resuelto


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

4 meses hace

Resuelto


Number of digits in an integer
Specifies how many digits in a given integer. Example: in=100 ==> out=3

4 meses hace

Resuelto


Remove All elements less than 5
Given an input vector x, remove all elements of x less than 5 . Example: Input x = [ 1 2 5 7 3 ] Output y is [ 5 7 ...

4 meses hace

Resuelto


Matlab Basics II - Find the roots of a function
Write a function that finds where a curve crosses zero (the x-axis) to two decimal places Example: <<http://s14.postimg.o...

4 meses hace

Resuelto


Matlab Basics - Assigning Variables
Assign different types of data to variables: integer, double, and strings Example: A is a double, for example 2.34 B is a...

4 meses hace

Resuelto


Matlab Basics II - Operations and Matrix Dimensions
Write a function that takes two inputs, a & b, and outputs the sum and product of the two matrices. The matrices have OPPOSITE d...

4 meses hace

Resuelto


Matlab Basics II - Velocity of a particle
A particle is moving in space, such that it's velocity is given by: <<http://s30.postimg.org/5rf1xtvj5/cody1.png>> write a...

4 meses hace

Resuelto


Matlab Basics - Pick out parts of a vector
Consider x a vector of length >= 7 (there are at least 7 elements in the vector, write a script that extracts the 2nd element, a...

4 meses hace

Resuelto


Sum of diagonals elements of a matrix
Given a matrix, return the sum of all the elements across the diagonals. E.g. A = [1 2 3; 4 5 6; 7 8 9;...

4 meses hace

Cargar más