解決済み


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

3年以上 前

解決済み


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

3年以上 前

解決済み


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

3年以上 前

解決済み


to the 2 all elements
to the 2 all elements

3年以上 前

解決済み


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

3年以上 前

解決済み


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

3年以上 前

解決済み


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

3年以上 前

解決済み


Mass Conversion 1

3年以上 前

解決済み


Temperature Conversion 3

3年以上 前

解決済み


Temperature Conversion 2

3年以上 前

解決済み


Temperature Conversion 1

3年以上 前

解決済み


Laws of motion 6

3年以上 前

解決済み


Laws of motion 5

3年以上 前

解決済み


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

3年以上 前

解決済み


Laws of motion 3

3年以上 前

解決済み


Laws of motion 2

3年以上 前

解決済み


Laws of motion 1

3年以上 前

解決済み


Kinetic energy calculation

3年以上 前

解決済み


Potential energy calculation

3年以上 前

解決済み


Total energy

3年以上 前

解決済み


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

3年以上 前

解決済み


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]

3年以上 前

解決済み


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

3年以上 前

解決済み


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

3年以上 前

解決済み


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

3年以上 前

解決済み


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

3年以上 前

解決済み


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

3年以上 前

解決済み


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

3年以上 前

解決済み


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.

3年以上 前

解決済み


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

3年以上 前

さらに読み込む