Risolto


Remove the Zero
Given an array n, remove all zeros

quasi 9 anni fa

Risolto


Deleting an element in a matrix
For vector Grades=[98 56 78 34 100 88 87], delete the number 78 to get the following matrix Grades=[98 56 34 100 88 87] **re...

quasi 9 anni fa

Risolto


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

quasi 9 anni fa

Risolto


Concatenate two strings
Its very easy. Just concatenate two strings.

quasi 9 anni fa

Risolto


Multiply a column by a row
* Given a column vector C and and a row vector R. * Output a matrix M. * Every column of M equals to C multiplied by correspon...

quasi 9 anni fa

Risolto


How many jokers?
* Given DNA codes of a group of suspects, * and a code for certain types of jokers, * Count how many jokers of that type. * ...

quasi 9 anni fa

Risolto


Convert yards to feet
The goal of this script is to convert a value given in yards to feet.

quasi 9 anni fa

Risolto


Potential Energy
Calculate the potential energy of a rock.

quasi 9 anni fa

Risolto


Compare two input matrices
Check which input matrix has more elements. Return "1" if matrix A has more elements than matrix B. Otherwise return "0". Exa...

quasi 9 anni fa

Risolto


Multiply by 3
Given the variable x as your input, multiply it by three and put the result in y.

quasi 9 anni fa

Risolto


Create matrix of replicated elements
Given an input element x, and the dimensions, (m, n) return a matrix of size m x n filled with element x. Example: Input: ...

quasi 9 anni fa

Risolto


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

quasi 9 anni fa

Risolto


Free passes for everyone!
THIS PROBLEM IS TEMPORALLY DECOMMISSIONED WHILE IT IS UPDATED. PLEASE WAIT _Simply return the name of the coolest numerical c...

quasi 9 anni fa

Risolto


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

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

quasi 9 anni fa

Risolto


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

quasi 9 anni fa

Risolto


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

quasi 9 anni fa

Risolto


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

quasi 9 anni fa

Risolto


Is my wife right?
Regardless of input, output the string 'yes'.

quasi 9 anni fa

Risolto


Let's see how peculiar we can get
The task is to multiply two numbers. But do it in the most peculiar possible way.

quasi 9 anni fa

Risolto


Additive persistence
Inspired by Problem 2008 created by Ziko. In mathematics, the persistence of a number is the *number of times* one must apply...

quasi 9 anni fa

Risolto


Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

quasi 9 anni fa

Risolto


Max of a Vector
Write a function to return the max of a vector

quasi 10 anni fa

Risolto


Mode
Find the mode of the vector Assumption: no vector is bimodal Example 1: input=[1 2 3 4 4]; output=4 Example 2: input=[7...

quasi 10 anni fa

Risolto


ASCii Code
Using Matlab get the ASCii for '?'

quasi 10 anni fa

Risolto


matlab indian players
answer is one of the indian matlab player(just for fun dont take serious)

quasi 10 anni fa

Risolto


ASCii Code
Using matlab, give the symbol that is associated with ASCii code 122

quasi 10 anni fa

Risolto


Temperature conversion
Convert temperature in degrees Celsius (C) to temperature in degrees Kelvin (K). Assume your answer is rounded to the nearest Ke...

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

quasi 10 anni fa

Risolto


Determine the square root
Determine the square root of the value the user has entered, n.

quasi 10 anni fa

Carica altro