Resuelto


Back to basics 15 - classes
Covering some basic topics I haven't seen elsewhere on Cody. Return the class of the input variable.

más de 10 años hace

Resuelto


Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

más de 10 años hace

Resuelto


Variable_Addition
be able to add any variable to the number one

más de 10 años hace

Resuelto


only input
Return the output without writing any code into the function.

más de 10 años hace

Resuelto


Matlab Basics II - squares
Write a function that takes matrix A, and squares each element in the matrix example: A = [1 2 3] output = [1 4 9]

más de 10 años hace

Resuelto


Test
Answer the question and the correct answer write in vector. Only one answer is correct. 1a Yes 1b No 1c No 1d No ...

más de 10 años hace

Resuelto


Remove the Zero
Given an array n, remove all zeros

más de 10 años hace

Resuelto


Variable Assignment
Complete the ? part by assigning myExamScore with 100.

más de 10 años hace

Resuelto


Hardy-Ramanujan number
Find the first Hardy-Ramanujan number.

más de 10 años hace

Resuelto


Matlab Basics II - Free Fall
An object freely falling from rest under gravity covers a distance x given by: x = 1/2 gt^2 write a function that calculat...

más de 10 años hace

Resuelto


Box!
Given a box, find the volume of the cube. With each side = a.

más de 10 años hace

Resuelto


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

más de 10 años hace

Resuelto


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

más de 10 años hace

Resuelto


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

más de 10 años hace

Resuelto


Matlab Basics - Create a row vector
Write a Matlab script to create a row vector of 10 consecutive numbers x = [1 2 3 4 5 6 7 8 9 10]

más de 10 años hace

Resuelto


Matlab Basics - Sum a vector
Write a script to add up all the elements in a vector e.g. x = [1 2 3 4] --> output = 10

más de 10 años hace

Resuelto


Y=X
Given an input variable x, output a variable y that is equal in value to x. Example: Input x = 1 Output y is 1 Inp...

más de 10 años hace

Resuelto


Assigning a sum
* Write a statement that assigns numCoins with numNickels + numDimes.

más de 10 años hace

Resuelto


Declaring a string
* Assign streetAddress with the string 1313 Mockingbird Lane.

más de 10 años hace

Resuelto


factorial of a number x
Factorial of a number x

más de 10 años hace

Resuelto


Narcissistic problem
How many likes has this problem?

más de 10 años hace

Resuelto


find the surface area of a cube
given cube side length x, find the surface area of the cube, set it equal to y

más de 10 años hace

Resuelto


Divide by 4
Given the variable x as your input, divide it by four and put the result in y.

más de 10 años hace

Resuelto


times 5
Given the variable x as your input, multiply it by five and put the result in y.

más de 10 años hace

Resuelto


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

más de 10 años hace

Resuelto


How to make y half of x
Making y equal to x/2.

más de 10 años hace

Resuelto


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

más de 10 años hace

Resuelto


Perfect Square
Find a function that finds the root of a perfect number!

más de 10 años hace

Resuelto


Create a vector
Create a vector from 0 to n by intervals of 2.

más de 10 años hace

Resuelto


Find max
Find the maximum value of a given vector or matrix.

más de 10 años hace

Cargar más