解決済み


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

11年以上 前

解決済み


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

11年以上 前

解決済み


Variable_Addition
be able to add any variable to the number one

11年以上 前

解決済み


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

11年以上 前

解決済み


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]

11年以上 前

解決済み


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

11年以上 前

解決済み


Remove the Zero
Given an array n, remove all zeros

11年以上 前

解決済み


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

11年以上 前

解決済み


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

11年以上 前

解決済み


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

11年以上 前

解決済み


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

11年以上 前

解決済み


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

11年以上 前

解決済み


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

11年以上 前

解決済み


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

11年以上 前

解決済み


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]

11年以上 前

解決済み


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

11年以上 前

解決済み


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

11年以上 前

解決済み


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

11年以上 前

解決済み


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

11年以上 前

解決済み


factorial of a number x
Factorial of a number x

11年以上 前

解決済み


Narcissistic problem
How many likes has this problem?

11年以上 前

解決済み


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

11年以上 前

解決済み


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

11年以上 前

解決済み


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

11年以上 前

解決済み


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

11年以上 前

解決済み


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

11年以上 前

解決済み


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

11年以上 前

解決済み


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

11年以上 前

解決済み


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

11年以上 前

解決済み


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

11年以上 前

さらに読み込む