A résolu


Card games

environ 2 mois il y a

A résolu


Change on Spiral Matrix
n>=3, generate a matrix of nth such that n^2 is the max number, and max number must be in [1,1] or [end, end]. One example will ...

environ 2 mois il y a

A résolu


Polygon Interior Angle Sum
Given the number of sides of a regular polygon, find the sum of interior angles. Return 0 for input for which regular polygon a...

environ 2 mois il y a

A résolu


Pass the Threshold!!
Write a Matlab function that will take as input a matrix of arbitrary dimensions and a scalar threshold value, and return a vec...

environ 2 mois il y a

A résolu


Polynomial Evaluation
Create a routine that takes a list of coefficients of a polynomial in order of increasing powers of x; together with a value of ...

environ 2 mois il y a

A résolu


Test within tolerance
Given a vector of experimental data, D, and a vector of truth data, T, return FALSE if any +/- errors (D-T) are outside a given ...

environ 2 mois il y a

A résolu


Concatenate a successive power matrix in a column matrix
Generate F = [M1 M^2 ... M^p] with M a matrix, without using for.

environ 2 mois il y a

A résolu


03 - Matrix Variables 5
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_3e.png>>

environ 2 mois il y a

A résolu


sign function

environ 2 mois il y a

A résolu


GPA
Math's credit is 5 and you got x | Physics's credit 7 and you got y what is your GPA

environ 2 mois il y a

A résolu


PIN code

environ 2 mois il y a

A résolu


Find the sum of the largest two elements in a vector
With this one, you have to find the two largest elements in a vector and output the sum of those numbers.

environ 2 mois il y a

A résolu


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

environ 2 mois il y a

A résolu


Create tangent function out of sin and cos
Please don't use tan(x) directly

environ 2 mois il y a

A résolu


Simple return on investment
Assume you have some money and want to invest all your money to stock market. You randomly select a stock and invest all your mo...

environ 2 mois il y a

A résolu


Variable_Addition
be able to add any variable to the number one

environ 2 mois il y a

A résolu


Find offset of given matrix element from first matrix element
Given matrix m and an element of that matrix, return the offset from its first element. e.g. m=[11 2 34; 40 51 6; 87 8 109] el...

environ 2 mois il y a

A résolu


Pluralization
Define function plu(n) that returns '' (an empty string) if n=1, or 's' otherwise. This is handy for displaying messages from a...

environ 2 mois il y a

A résolu


Find the position of last minimum value in an integer array with numbers
If x = [2 6 4 9 -10 3 1 5 -10] then the output should be 9, because last minimum value (-10) lies at the 9th position.

environ 2 mois il y a

A résolu


02 - Vector Variables 5
_eVec_ = _Hello_ ( _eVec_ is a string, which is a vector of characters )

environ 2 mois il y a

A résolu


Bit to Gigabyte
1 bit = 1.25 × 10^-10 gigabytes | x is bit | y is gigabyte

environ 2 mois il y a

A résolu


Create a square matrix with given conditions
Create a square matrix, M, which should be populated as follows: M = [ n^2 n * (n-1) n * (n-2) ... n * 2 n * ...

environ 2 mois il y a

A résolu


cube of number
find cube of number

environ 2 mois il y a

A résolu


Circle : Square

environ 2 mois il y a

A résolu


determine the sum of the squares
if x = 4, the solution will be: y = 1^2+2^2+3^2+4^2=1+4+9+16 = 30.

environ 2 mois il y a

A résolu


Converter temp 0 to 200 degree C to 4 to 20mA
Converter temp 0 to 200 degree C to 4 to 20mA (It is used in transmitter)

environ 2 mois il y a

A résolu


Create a square matrix of zeros of even order
Create a square matrix of zeros of even order

environ 2 mois il y a

A résolu


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

environ 2 mois il y a

A résolu


divide by 5

environ 2 mois il y a

A résolu


Initialize a Natural Number matrix.
Given length of matrix initialize a matrix consisting of natural numbers from 1 to n: n = 10; x = [ 1 2 3 4 5 6 7 8 9 10]; ...

environ 2 mois il y a

Charger plus