Returning a "greater than" vector
Given a vector, v, return a new vector , vNew, containing only values > n.
For example:
v=[1 2 3 4 5 6]
n=3
vNew =...
11年以上 前
解決済み
Binary
Given a positive, integer n, create a function that returns the respective binary number in the form of a vector.
Example:
...
Transpose
Write a MATLAB script in order to convert a random length row vector (v) into a column vector.
11年以上 前
解決済み
Negative matrix
Change the sign of all elements in given matrix.
11年以上 前
解決済み
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...
11年以上 前
解決済み
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...
11年以上 前
解決済み
Given area find sides
In a right angle triangle given area 'A'
one arm=x, another arm=2x
then find the value of x.
For example, area A=400 then ...