已解决


Sort Reversal
There are n index cards in a row, with n distinct integers written on them (one number per card) so that the numbers are sorted ...

6 years 前

已解决


Matlab Basics II - Unit Conversion
Write a function that converts Kg to lbs, returns the answer to the nearest 1/100th of a pound

6 years 前

已解决


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

6 years 前

已解决


Orthonormal matrix
You decide whether any given matrix is an orthonormal matrix or not. If each column in a matrix is perpendicular to the other...

6 years 前

已解决


Reshape a Vector
Write a function that accept three inputs. The first one is a row vector S. The second and third arguments are m and n which de...

6 years 前

已解决


the number of inputs
Find the number of the inputs of the function. example y = theinputnumber(x,k); function called theinputnumber has 2 in...

6 years 前

已解决


N-Dimensional Sorting
Given two N-dimensional matrices A and B, first sort A in increasing order and then sort B with respect to the index of A. Y...

6 years 前

已解决


Create all combinations of vectors
This function exists in the Neural Network Toolbox but is not available in Cody. Can you write such a function? See <http://...

6 years 前

已解决


Multiplication
Multiply two numbers in a different manner. The numbers are given to you as vectors x and y. Example x = [ 1 2 0 1 ] ...

6 years 前

已解决


Values in Array
How many values are in the array

6 years 前

已解决


Generate the sum of Squares of the given number
|P(n) = 1^2 + 2^2 + ... + n^2| |P(1) = 1| |P(2) = 1 + 4 = 5;| |P(3) = 5 + 9 = 14;| |P(4) = 14 + 16 = 30;|

6 years 前

已解决


To convolve two vectors
To convolve two vectors

6 years 前

已解决


Moore-Penrose pseudoinverse of matrix
Find the command for Moore-Penrose pseudoinverse of matrix and solve

6 years 前

已解决


Permutations of input vector
Find and output all permutations of given vector

6 years 前

已解决


Is it prime?
Given a number, check whether it is prime or not. If prime output is true, otherwise false.

6 years 前

已解决


string comparision
compare two strings if both are same return 1 else return 0

6 years 前

已解决


Change number representation to HEX
Given a number change it's representation to HEX and output it.

6 years 前

已解决


Calculate Simple Intrest for given data
P,N,R stands for Principle amount, No. of years and rate of intrest resp. Calculate intrest I

6 years 前

已解决


Roots of quadratic equation
Given a quadratic equation ax^2 + bx + c = 0, write a function to return its roots.

6 years 前

已解决


Delete blanks at the end of string
you got to delete all blank spaces which appears at the end of string

6 years 前

已解决


volume of torus
Find volume of torus with a as major radius and b as minor

6 years 前

已解决


Find minimum and maximum elements of an array
For a given array find minimum and maximum elements of an array and store minimum value in first index of output and maximum in ...

6 years 前

已解决


Xor of matrix
you have to set exclusive OR of two arrays

6 years 前

已解决


Find Month & day for given day number of a year
Find Month & day for given day number of a year (day number is any number ranging from 1 to 366)

6 years 前

已解决


Step up
For given input array, output a array with all elements step up by two

6 years 前

已解决


Decoding : Find the value
'u' in the function below is of type char or string and 'v' is of type int or double. function y = your_fcn_name( u, v) ...

6 years 前

已解决


Hackathon - String version
I have a function that creates a random string of characters of ASCII values 32-127. The length of the string is also randomly ...

6 years 前

已解决


Break it up! Break it up!
You have N pennies. Write a Matlab script that will reveal how many different ways you can break up those pennies. For example...

6 years 前

已解决


Kurchan 4x4 - Optimal score
Related to Problem 1646, but bigger. Technically, all you need to do for this Cody problem is input a 4x4 matrix containing the...

6 years 前

已解决


Points on a circle.
This problem is related to <url=http://www.mathworks.com/matlabcentral/cody/problems/1283-points-on-a-sphere>Problem 1283, Point...

6 years 前

加载更多