Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


Nth root
Nth root of a number x

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Carica altro