Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


Variable_Addition
be able to add any variable to the number one

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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]

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


Remove the Zero
Given an array n, remove all zeros

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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]

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


factorial of a number x
Factorial of a number x

mehr als 11 Jahre vor

Gelöst


Narcissistic problem
How many likes has this problem?

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Mehr laden