Risolto


calculate the length of matrix
input 1 array, calculate the length

oltre 4 anni fa

Risolto


Double all elements in the array
Duplicate all elements in the array

oltre 4 anni fa

Risolto


the average value of the elements
Calculate the average value of the elements in the array

oltre 4 anni fa

Risolto


to the 2 all elements
to the 2 all elements

oltre 4 anni fa

Risolto


Calculate the average value of the elements in the array
Calculate the average value of the elements in the array

oltre 4 anni fa

Risolto


Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

oltre 4 anni fa

Risolto


Calculate the height of an object dropped from the sky
Assume that an object is dropped from 1000 meters above the surface of the earth at time t=0. The object is dropped such that t...

oltre 4 anni fa

Risolto


Mass Conversion 1

oltre 4 anni fa

Risolto


Temperature Conversion 3

oltre 4 anni fa

Risolto


Temperature Conversion 2

oltre 4 anni fa

Risolto


Temperature Conversion 1

oltre 4 anni fa

Risolto


Laws of motion 6

oltre 4 anni fa

Risolto


Laws of motion 5

oltre 4 anni fa

Risolto


Laws of motion 4
Given the initial velocity 'u', final velocity 'v' and acceleration 'a', find the distance travelled.

oltre 4 anni fa

Risolto


Laws of motion 3

oltre 4 anni fa

Risolto


Laws of motion 2

oltre 4 anni fa

Risolto


Laws of motion 1

oltre 4 anni fa

Risolto


Kinetic energy calculation

oltre 4 anni fa

Risolto


Potential energy calculation

oltre 4 anni fa

Risolto


Total energy

oltre 4 anni fa

Risolto


Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

oltre 4 anni fa

Risolto


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

oltre 4 anni fa

Risolto


Getting the indices from a vector
This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to <http://www.mathworks....

oltre 4 anni fa

Risolto


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

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

oltre 4 anni fa

Risolto


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

oltre 4 anni fa

Risolto


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the numbers. Otherwise return false. Example...

oltre 4 anni fa

Risolto


Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2 3 3 3 4...

oltre 4 anni fa

Risolto


Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

oltre 4 anni fa

Risolto


Make a random, non-repeating vector.
This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...

oltre 4 anni fa

Carica altro