解決済み


Skip by a multiple
Given an integer create an array of its multiples. Array must have a length of 15

3年以上 前

解決済み


Unit conversion
Convert x degree Celsius to y degree Fahrenheit.

3年以上 前

解決済み


Matrix problem for beginners
Make a matrix [0,0,0;1,1,1;2,2,2]. X=[0,1,2]

3年以上 前

解決済み


Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

3年以上 前

解決済み


Square
X is a number, write a code, where Y should be the square of X.

3年以上 前

解決済み


multiply by three
Given the variable x as your input, multiply it by 3 and put the result equal to y. Examples: Input x = 2 Output y is ...

3年以上 前

解決済み


Matrix for beginners
Multiply x and y elemwise.

3年以上 前

解決済み


Compute a dot product of two vectors x and y
x and y are input vectors, d is a number and contains their dot product

3年以上 前

解決済み


Say something funny
Say something funny, or not. Your solution will be (fully automatically and objectively) scored based on how clever or funny ...

3年以上 前

解決済み


So many choices
For inputs _n_ and _k_ (in that order), output the number of ways that k objects can be chosen from amongst n distinct objects. ...

3年以上 前

解決済み


Min of a Matrix
Return the minimum value in the given matrix.

3年以上 前

解決済み


Angle of triangle
For three unknown points a b c, given three sides ab bc ca, find three angles abc bca cab in radians. Your function should b...

3年以上 前

解決済み


Count ones
Write a program to count number of ones (1s) in an integer variable input. For example: Input x=2200112231 output y=3 I...

3年以上 前

解決済み


Find 100 from a Matrix and Replace With 0 with less computation time
pls use this matrix x = [208 40 167 180 112 70 192 215 90 19 231 100 9 100 97 100 ...

3年以上 前

解決済み


Swap two numbers
Example Input: a = 10 b = 20 Output a = 20 b = 10

3年以上 前

解決済み


Will there be a new leader?
Simply answer the title.

3年以上 前

解決済み


Matlab Basics II - Max & Index of Max
Write a function that takes a vector x, then returns both the max value in x and its location in the vector for example x ...

3年以上 前

解決済み


most frequent character
Obtain the most frequent character. For example, s='balaram'; output='a'; If there is a tie between letters, return t...

3年以上 前

解決済み


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

3年以上 前

解決済み


pressure to dB?
given x ratio of pressure, find corresponding y dB

3年以上 前

解決済み


Create a two dimensional zero matrix
You have to create a zero matrix of size (mxn) whose inputs are m and n and the elements of your matrix should be zeros. Exam...

3年以上 前

解決済み


reverse string
input='rama' output='amar'

3年以上 前

解決済み


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

3年以上 前

解決済み


Basic arrays operations.
Apply element-by-element binary operation 'fun' to two arrays (A and B).

3年以上 前

解決済み


Volume and area of a sphere
Input(r) - radius Output([v,s]) - volume and area

3年以上 前

解決済み


surface of a spherical planet
you just discovered its circumference, that is the input.

3年以上 前

解決済み


Is my wife right?
Regardless of input, output the string 'yes'.

3年以上 前

解決済み


Temperature conversion
Convert temperature in degrees Celsius (C) to temperature in degrees Kelvin (K). Assume your answer is rounded to the nearest Ke...

3年以上 前

解決済み


Is the input divisible by 3?
Return true if the input is divisible by 3 and false if not.

3年以上 前

解決済み


Back to basics 22 - Rotate a matrix
Covering some basic topics I haven't seen elsewhere on Cody. Rotate the input matrix 90 degrees counterclockwise (e.g. [1 2; ...

3年以上 前

さらに読み込む