Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


Variable_Addition
be able to add any variable to the number one

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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]

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


Remove the Zero
Given an array n, remove all zeros

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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]

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


factorial of a number x
Factorial of a number x

oltre 11 anni fa

Risolto


Narcissistic problem
How many likes has this problem?

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Carica altro