解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


Nth root
Nth root of a number x

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

さらに読み込む