해결됨


Create a Matrix of Zeros
Given an input x, create a square matrix y of zeros with x rows and x columns.

약 1년 전

해결됨


calculate RMS voltage
given peak to peak voltage, calculate rms voltage

약 1년 전

해결됨


Roots
Find out the roots of a given polynomial equation.Given are the coefficients of the equation.

약 1년 전

해결됨


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

약 1년 전

해결됨


What is Sum Of all elements of Matrix
Given the matrix x, return the sum of all elements of matrix. Example: Input x = [ 1 2 0 0 0 0 6 9 3 3 ] ...

약 1년 전

해결됨


Vector Magnitude Calculator
'a' is a vector that starts at the origin and ends at (x, y). Find ||a||. Hint: It is as simple as "ABC".

약 1년 전

해결됨


Simple equation: Annual salary
Given an hourly wage, compute an annual salary by multiplying the wage times 40 and times 50, because salary = wage x 40 hours/w...

약 1년 전

해결됨


Rotate a Matrix
Input a Matrix x, Output y is the matrix rotating x 90 degrees clockwise

약 1년 전

해결됨


Find out value of sine given by degree.
Find out value of sine given by degree. If theta=30, it's value must be 0.5.

약 1년 전

해결됨


Square a Number
Given an input x, return y, which is equal to the square of x.

약 1년 전

해결됨


y equals x divided by 2
function y = x/2

약 1년 전

해결됨


metre to feet converter
The idea is to make a converter, which exchange meters to feets. We use a factor of 1m = 3.281*1f. so 3m are equals to 9.843 m...

약 1년 전

문제


Red Cross

약 1년 전 | 0 | 솔버 수: 21

해결됨


Back to basics 15 - Benchmark
Covering some basic topics I haven't seen elsewhere on Cody. Return an array of the benchmark values for MATLAB.

약 1년 전

해결됨


Area of rhombus
Calculate the rhombus area

약 1년 전

해결됨


find the maximum element of the matrix
for e.g x = [1 2; 3 4] y = 4

약 1년 전

해결됨


square number
Square a number

약 1년 전

해결됨


Rotate array 90 degrees
Rotate the given matrix by 90 degrees. Example, A = [1 2 3 ; 4 5 6 ] B = rotated(A) = [ 3 6; 2 5; 1 4 ]

약 1년 전

해결됨


Area of a circle
Find the value for area of the circle if diameter is given

약 1년 전

해결됨


square root
Find the square root (y) of an input (x).

약 1년 전

해결됨


Remove NaN ?
input -> matrix (n*m) with at least one element equal to NaN; output -> matrix(p*m), the same matrix where we deleted the enti...

약 1년 전

해결됨


Output a vector which is table of 9
Output a vector which is table of 9

약 1년 전

해결됨


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

약 1년 전

해결됨


Sum of the Multiplication of Vectors
Given the vectors x and y as input, multiply the vectors and return the summation of its elements. Example: x = [1 2 ...

약 1년 전

해결됨


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

약 1년 전

해결됨


Speed of car
Calculate the Speed of car given its Distance travelled and time taken in x and y respectively

약 1년 전

해결됨


find the roots of a quadratic equation
for e.g x = [ 2 -1 -3] y = [1.5 -1]

약 1년 전

해결됨


Times 3 problem
When you enter the number, it should return the number multiplied by 3

약 1년 전

해결됨


Square Diagonal
If n is the given number, then make a diagonal matrix of size 2*2 with the square of that number.

약 1년 전

해결됨


Squaring Matrix
Square the following matrix using matlab % A = 1 2 3 4 5 6 7 8 So new matrix should display...

약 1년 전

더로드