Risolto


Degrees to Radian
Convert degrees to radians

quasi 10 anni fa

Risolto


Kinetic Energy
Given mass, m, and kinetic energy, KE, find the velocity of the object.

quasi 10 anni fa

Risolto


Find the distance traveled by a car given velocity and time.
A car is traveling at a constant velocity for a specific amount of time. The function should use the two inputs, velocity and ti...

quasi 10 anni fa

Risolto


Flip the main diagonal of a matrix
Given a n x n matrix, M, flip its main diagonal. Example: >> M=magic(5); >> flipDiagonal(M) 9 24 1 ...

quasi 10 anni fa

Risolto


Sorting
Assume that x is an n-by-2 matrix. The aim is to return the first column of x, but sorted according to the second column. Exa...

quasi 10 anni fa

Risolto


Wind Chill Computation
On a windy day, a temperature of 15 degrees may feel colder, perhaps 7 degrees. The formula below calculates the "wind chill," i...

quasi 10 anni fa

Risolto


Return area of square
Side of square=input=a Area=output=b

quasi 10 anni fa

Risolto


length of a vector
Find twice the length of a given vector.

quasi 10 anni fa

Risolto


Add two numbers
Add two numbers (For beginners)

quasi 10 anni fa

Risolto


The Answer to Life, the Universe, and Everything
A variation of a previous Hitchhiker's Guide to the Galaxy problem. *Inputs:* Life, the Universe, and Everything *Output:*...

quasi 10 anni fa

Risolto


Replace multiples of 5 with NaN
It is required to replace all values in a vector that are multiples of 5 with NaN. Example: input: x = [1 2 5 12 10 7] ...

quasi 10 anni fa

Risolto


Remainder
Make 'y' equal to the remainder of 27 divided by 5. When x=27 and t=5

quasi 10 anni fa

Risolto


sum of non-primes
The sum of the non-primes below 10 is 1+4+6+8+9+10=38 Find the sum of all the non-primes below the input, N.

quasi 10 anni fa

Risolto


Do you like your boss?
Do you like your boss? Answer can be any string! For example: Boss = 'Do you like your boss?'; Output = 'yes' or ...

quasi 10 anni fa

Domanda


mldivide algorithm for sparse matrices
In the documentation of the _mldivide_ function, two flow charts report the steps used by MATLAB to decide which method to apply...

quasi 10 anni fa | 1 risposta | 0

1

risposta

Risolto


Space Saver
Remove all characters that are below a space in ASCII value.

quasi 10 anni fa

Risolto


sum of first 'n' terms
Given n=10, find the sum of first 'n' terms Example: If n=10, then x=1,2,3,4,5,6,7,8,9,10. The sum of these n=10 terms is 55...

quasi 10 anni fa

Risolto


Count ones
Write a program to count number of ones (1s) in an integer variable input. For example: Input x=2200112231 output y=3 I...

quasi 10 anni fa

Risolto


Return 'on' or 'off'
When the input is true, return 'on', otherwise, return 'off'.

quasi 10 anni fa

Risolto


Equal to their cube
Tell me three real numbers that are equal to their cubes?

quasi 10 anni fa

Risolto


Generate a random matrix A of (1,-1)
Input n: is an positive integer which serves as the dimension of the matrix A; Output: A=(Aij),where each entry Aij is either...

quasi 10 anni fa

Risolto


Given a 4x4 matrix, swap the two middle columns
If a = [1 2 3 4; 1 2 3 4; 1 2 3 4; 1 2 3 4]; then the result is ans = 1 3 2 4 1 3 2...

quasi 10 anni fa

Risolto


Number of 1s in the Binary Representation of a Number
*Description* Return the number of 1s in the (unsigned integer) binary representation of a number. This function should be ab...

quasi 10 anni fa

Risolto


Rankine to Kelvin Converter
Given input R, rankine, convert into degrees Celsius.

quasi 10 anni fa

Risolto


Cookie Cutters
Given a larger and smaller matrix, perform element-by-element multiplication on the smaller matrix and a sub-matrix of the large...

quasi 10 anni fa

Risolto


Energy-Mass Equivalence
Given input enegy of the object, E, and constant c = 300,000,000, find the mass of the object.

quasi 10 anni fa

Risolto


MUltiply the two number
product

quasi 10 anni fa

Risolto


add the two numbers
add the two numbers

quasi 10 anni fa

Risolto


hello
high 5

quasi 10 anni fa

Risolto


1
1

quasi 10 anni fa

Carica altro