解決済み


Rounding
Round 10.67 and make 'y' equal to that number.

12年弱 前

解決済み


Solve the set of simultaneous linear equations
Given this pair of simultaneous linear equations: 2x + 3y = 23 3x + 4y = 32 Find the solution set (x,y)

12年弱 前

解決済み


What percentage?
Calculate the output c as the percentage of a on b for given a and b.

12年弱 前

解決済み


Back to basics 24 - Symbolic variables
Covering some basic topics I haven't seen elsewhere on Cody. Given a string algebraic expression, return the symbolic variabl...

12年弱 前

解決済み


Consecutive Powers
Return 2 numbers and 2 powers such that their difference is 1 A 4 element row vector is expected: x where x(1)^x(2) - x(...

12年弱 前

解決済み


Convert a Cell Array into an Array
Given a square cell array: x = {'01', '56'; '234', '789'}; return a single character array: y = '0123456789'

12年弱 前

解決済み


Find best placement for ordered dominoes (harder)
Given a list of ordered pairs, find the order they should be placed in a line, such that the sum of the absolute values of the d...

12年弱 前

解決済み


Find perfect placement of non-rotating dominoes (easier)
Given a list of ordered pairs, find the order they should be placed in a line, such that the sum of the absolute values of the d...

12年弱 前

解決済み


Alternating sum
Given vector x, calculate the alternating sum y = x(1) - x(2) + x(3) - x(4) + ...

12年弱 前

解決済み


MATCH THE STRINGS (2 CHAR) very easy
Match the given string based on first two characters on each string. For example A='harsa'; b='harish'; result '1' ...

12年弱 前

回答済み
Uploading documentation to File Exchange?
Many File Exchange submissions are actually folders with multiple files. As far as I can tell, File Exchange is simply classifyi...

12年弱 前 | 1

| 採用済み

解決済み


04 - Scalar Equations 2
Define the variables a and b: <<http://samle.dk/STTBDP/Assignment1_4-a.png>> <<http://samle.dk/STTBDP/Assignment1_4-b.png>...

12年弱 前

解決済み


The sum of the numbers in the vector
eg. [1,2,3]---->SUM=6

12年弱 前

解決済み


05 - Vector Equations 1
Define the vector _cVec_: <<http://samle.dk/STTBDP/Assignment1_2c.png>> (all the numbers from 5 to -5 in increments of -0....

12年弱 前

解決済み


Numbers in extended form
Shhhhhhh. Don't tell my daddy, but I'm borrowing his Cody account so all of you very smart people can help me out. I just star...

12年弱 前

解決済み


Strange Number Algorithms
Three integer numbers will be provided to you. Write a function to Step1: Multiply first number by 3. Step2: Add 6 with t...

12年弱 前

解決済み


Probability of Choosing a Red Ball
Given two jars of red and blue balls, find the probability of choosing a red ball from Jar 1 after going through the steps. ...

12年弱 前

解決済み


Find the maximum two numbers of every column of a matrix
Find the maximum two numbers of every column of a matrix. Example: If we input a matrix A = [ 1 2 4 6 0 3 ...

12年弱 前

解決済み


Relational operators: Guessing game
* Row array userGuess contains a sequence of user guesses. Assign correctGuess with true when myNumber is equal to the user gues...

12年弱 前

解決済み


Comparing floating point values
* Assign matchFound with true if firstSample and secondSample within thresholdValue.

12年弱 前

解決済み


Union of two set decreasing order
Union of two set decreasing order Say, x=[1 2 5] and y=[5 7 8] then answer must be [8 7 5 2 1]

12年弱 前

回答済み
How to create symbol function matrix in matlab?
To get an |n x n| matrix, use A = sym('A',n);

12年弱 前 | 0

回答済み
How to extract results from ans of solve command?
First, it's a good idea to give a meaningful name to the output of |solve|: sols = solve (bc1, bc2, An1, Bn1); Now you c...

12年弱 前 | 0

質問


Why doesn't Cody accept a class definition?
I created a solution for <http://www.mathworks.com/matlabcentral/cody/problems/1745-get-me Cody Problem 1745 (Get me!)> that is ...

12年弱 前 | 1 件の回答 | 0

1

回答

解決済み


How to add?
* Imagine you are in 2222 Anno Domini, when everyone must learn how to add, * and competing for the highly prestigious post of,...

12年弱 前

解決済み


Coordinate geometry
Assign pointsDistance with the distance between point (x1, y1) and point (x2, y2). The distance is calculated by: Distance =...

12年弱 前

解決済み


Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
The given function returns the index of the maximum value in a given matrix. such as X=[4,3,4,5,9,12,0,5] Ans= 6 if maxim...

12年弱 前

解決済み


Given a matrix, return the last eigen value
Given a matrix, return the first eigen value For example: x = magic(5) 17 24 1 8 15 23 5 7 14 ...

12年弱 前

回答済み
Wrong answer using " fft (ifft ( vector )) "
The FFT algorithm is a numeric algorithm, with the inevitable round-off errors (see <http://www.mathworks.com/help/matlab/matlab...

12年弱 前 | 1

解決済み


Fahrenheit to Celsius converter
Convert Fahrenheit to Celsius degrees.

12年弱 前

さらに読み込む