解決済み


Array of Ones
Create a 100 X 100 array of ones.

4ヶ月 前

解決済み


Matlab Basics - Set unwanted parts of a vector to zero
Consider a vector x, of length >= 7, write a script to set elements 2, 5, and 6 to zero. Example x = [1 2 3 4 5 6 7] --> ...

4ヶ月 前

解決済み


Test Problem; Create a 5x5 array containing all ones
This is a test for learning the process of creating a Cody problem. The goal of this test problem will be to create an array,...

4ヶ月 前

解決済み


Add two numbers
Add two numbers (For beginners)

4ヶ月 前

解決済み


Area of rhombus
Calculate the rhombus area

4ヶ月 前

解決済み


Element by element multiplication of two vectors
Given two input vectors, return the element-by-element product. Example A = [1 2 3] B = [7 3 1] The answer should be...

4ヶ月 前

解決済み


Dancing with wolves?
let wolf() make one or two steps to get a feel of the beat, it is waltz, do not let wolf() make the third step, return safely ju...

4ヶ月 前

解決済み


given 3 sides, find area of this triangle
1:3 -> 0; 3:5 -> 6

4ヶ月 前

解決済み


capable husband?
* The prospective husband must pass a background check, * and *functions* faithfully, as suggested by <http://www.mathworks.com...

4ヶ月 前

解決済み


Given a number N, find the smallest prime P>N
Given a number N, find the smallest prime P greater than N. For example: If N=10 then P=11. If N=13 then P=17.

4ヶ月 前

解決済み


Number of Horns on a unicorn!
Calculate the number of horns on a *unicorn*! And I'm talking about a unicorn with not more than one horn on it!

4ヶ月 前

解決済み


Calories in a slice of pizza?
The total calories C in a pizza is printed on its box. You know the angle A (degrees) of the slice you placed on your plate. Ple...

4ヶ月 前

解決済み


Which quadrant?
Given a complex number, output quadrant 'I' 'II' 'III' or 'IV' | II | I | ...

4ヶ月 前

解決済み


Return unique values without sorting
If the input vector A is [42 1 1], the output value B must be the unique values [42 1] The *values of B are in the s...

4ヶ月 前

解決済み


Back to basics - mean of corner elements of a matrix
Calculate the mean of corner elements of a matrix. e.g. a=[1 2 3; 4 5 6; 7 8 9;] Mean = (1+3+7+9)/4 = 5

4ヶ月 前

解決済み


Convert a vector into a number
This is a sub problem related to this problem: <http://www.mathworks.com/matlabcentral/cody/problems/621-cryptomath-addition>...

4ヶ月 前

解決済み


Compare two input matrices
Check which input matrix has more elements. Return "1" if matrix A has more elements than matrix B. Otherwise return "0". Exa...

4ヶ月 前

解決済み


Find the dimensions of a matrix
Just find the number of columns of the given matrix. Example x = [1 2 3 4 5 6] y = 2

4ヶ月 前

解決済み


Palindrome Check
Check whether the entire matrix is palindrome or not. Example matrix = [7 8 7] matrix_reverse = [7 8 7] So the mat...

4ヶ月 前

解決済み


Create the following sequence : 0 1 1 4 9 25 64 169 ...
The sequence 0, 1, 1, 4, 9, 25, 64, 169, ... represents the square of the sequence of Fibonacci numbers. Let n repres...

4ヶ月 前

解決済み


Concatenate two strings
Its very easy. Just concatenate two strings.

4ヶ月 前

解決済み


Find the area of the four walls
If length, breadth and height of the walls are given, find the area of the four walls.

4ヶ月 前

解決済み


Convert yards to feet
The goal of this script is to convert a value given in yards to feet.

4ヶ月 前

解決済み


Volume of a box
Given a box with a length a, width b, and height c. Solve the volume of the box.

4ヶ月 前

解決済み


Find the area of a rectangle if length of the diagonal is given.
if length of a diagnonal in rectangle is 5. Its area is 12.

4ヶ月 前

解決済み


Is it column vector?
Is it column vector? Check vector for column vector without using iscolumn function.

4ヶ月 前

解決済み


Compute LOG(1+X) in natural log
Compute LOG(1+X) in natural log

4ヶ月 前

解決済み


Crate a vector of logarithmically spaced
Create a vector of logarithmically spaced from 10^0 to 10^x with n sample Example: if x=4 and n=3 Answer must be=[1 100 10...

4ヶ月 前

解決済み


Guess Cipher
Guess the formula to transform strings as follows: 'Hello World!' --> 'Ifmmp Xpsme!' 'Can I help you?' --> 'Dbo J ifm...

4ヶ月 前

解決済み


Beginner's Problem - Squaring
Try out this test problem first. Given the variable x as your input, square it by two and put the result in y. Examples: ...

4ヶ月 前

もっと読み込む