Gelöst


Sum of cubes
Write a program to determine sum of cubes of first n odd numbers.

fast 10 Jahre vor

Gelöst


Create tangent function out of sin and cos
Please don't use tan(x) directly

fast 10 Jahre vor

Gelöst


Pointwise multiplication of vectors.
Pointwise multiplication of vectors x and y. Example x= [1 3 5 7 9 11 13 15 17 19] y=[ 1 4...

fast 10 Jahre vor

Gelöst


Nth root
Nth root of a number x

fast 10 Jahre vor

Gelöst


Find hen's weight.
If hen weights x kilos on two legs, how much does it weights on one leg? Output the result.

fast 10 Jahre vor

Gelöst


Flipping a Matrix
Flipping matrix up and down. If a central row is exists, leave it, and flip remaining rows. Example Mat = magic(3) ...

fast 10 Jahre vor

Gelöst


Calculate the centroid of a triangle
Info: https://en.wikipedia.org/wiki/Centroid Example Input: x = [0 0 1]; % x-coordinate y = [0 1 0]; % y-coordinat...

fast 10 Jahre vor

Gelöst


cheating technique1
in these cody problems, there is a way to cheat. find out how people cheat.

fast 10 Jahre vor

Gelöst


Energy of an object
Calculate the total mechanical energy of an object. Total Energy= Potential energy + Kinetic energy P.E.=m*g*h K.E.=1/2...

fast 10 Jahre vor

Gelöst


cheating technique2
there are some ways to get hints just by looking at the test suits to cheat. try.

fast 10 Jahre vor

Gelöst


Divide the Least Common Multiple by the Greatest Common Divisor of two numbers
Divide the Least Common Multiple by the Greatest Common Divisor of two numbers. For example, for x=12345 and y=54321, the answer...

fast 10 Jahre vor

Gelöst


Union Jack Matrix
Create a matrix of odd dimensions that has ones on both diagonals and dividing the matrix into 4 quadrants, resembling a square ...

fast 10 Jahre vor

Gelöst


Cookie Cutters
Given a larger and smaller matrix, perform element-by-element multiplication on the smaller matrix and a sub-matrix of the large...

fast 10 Jahre vor

Gelöst


Calculate a modified Levenshtein distance between two strings
Inspired by the Cody problem found <http://www.mathworks.com/matlabcentral/cody/problems/93-calculate-the-levenshtein-distance-b...

fast 10 Jahre vor

Gelöst


English to Pig Latin Translator
Pig latin is a faux-language based off of English. The rules are as follows (excerpted from the wikipedia entry for Pig Latin): ...

fast 10 Jahre vor

Gelöst


Pig Latin to English Translator
Pig latin is a faux-language based off of English. The rules are as follows (excerpted from the <http://en.wikipedia.org/wiki/Pi...

fast 10 Jahre vor

Gelöst


Find mistyped words in text (mixed-up letters)
Mistyped words are a regular occurrence in emails, texts, status updates, and the like. Many times, people send or post a second...

fast 10 Jahre vor

Gelöst


Change string to number
Change given string to number. (hint: there is already function) Changing from ['1234'] to [1234] is one of example

fast 10 Jahre vor

Gelöst


Lah Numbers
Create a square lower diagonal matrix containing the first n Lah number coefficients. In mathematics, the Lah numbers are coeffi...

fast 10 Jahre vor

Gelöst


Find the volume of cone
Find the volume of cone, when given radius(r) and height(h).

fast 10 Jahre vor

Gelöst


Print true if
all elements are larger than 5 a=[1 3 5 8 6]; b=[6 6 6 6 6]; function(a) should be false, and function(b) will be tru...

fast 10 Jahre vor

Gelöst


Calculating selling price
Cost of a Product is $x What should be the selling price if you want to gain 10%?

fast 10 Jahre vor

Gelöst


Implement zero-based indexing for Matrices
Given an input vector and position (which is zero based) output the value Example: x = [1 2; 4 5] pos = [0 1] value = 5 ...

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


find a number (cheat)
find a number input^5 = input the out put should be the number. try cheating

fast 10 Jahre vor

Gelöst


Annoying population
Every year the number of annoying persons in the office triples Found the population, given a(0) and t

fast 10 Jahre vor

Gelöst


Create tangent function out of sine function only
Please don't use cosine and tangent functions

fast 10 Jahre vor

Gelöst


Solving Quadratic Equations (Version 2)
Before attempting this problem, solve version 1: <https://www.mathworks.com/matlabcentral/cody/problems/2510-solving-quadratic-...

fast 10 Jahre vor

Gelöst


How to calculate log?
There is a log that have base 5. How to calculate? log5(x)?

fast 10 Jahre vor

Gelöst


Create cotangent function out of sine.
Please, don't use cos, tan, cot matlab functions.

fast 10 Jahre vor

Mehr laden