Risolto


Median computation (★)
Given a vector of values, compute the median. The median is defined as the middle value in a set of *sorted* data. Thus, if ...

circa un anno fa

Risolto


Remove the row average (★★★)
(copy of Prob. 963) Given a 2-d matrix, remove the row average from each row. Your solution MUST be vectorized. The solut...

circa un anno fa

Risolto


Vector raised to a power, element-wise (★)
Given a vector A and a number x, raise each element of the vector to the power of x. Thus, if A = [2 5 7 1] and x = 0.5, then ...

circa un anno fa

Risolto


Swap the first and last columns (★★)
(copy of Prob 19) Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becom...

circa un anno fa

Risolto


Sum of elements in a vector (★)
(copy of Prob. 3) Find the sum of all the numbers of the input vector x. Input x = [1 2 3 5] Output y is 11 <> ...

circa un anno fa

Risolto


Make a checkerboard matrix (★★★★★)
(copy of Prob. 4) Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1...

circa un anno fa

Risolto


Energy of a photon
&#9883 &#9762 &#9883 &#9762 &#9883 &#9762 &#9883 Given the frequency F of a photon in giga hertz. Find energy E of this photon...

circa un anno fa

Risolto


Program an exclusive OR operation with logical operators
Program an exclusive or operation *without* using the MATLAB function xor. Use logical operators like |, &, ~, ... instead. ...

circa un anno fa

Risolto


vector to string
Determine what the ASCII characters spell out. Example: input = [ 72 73 71 72] output = 'HIGH'

circa un anno fa

Risolto


Remove All elements less than 5
Given an input vector x, remove all elements of x less than 5 . Example: Input x = [ 1 2 5 7 3 ] Output y is [ 5 7 ...

circa un anno fa

Risolto


Sum of integers numbers
Sum of the numbers from 1 to 100

circa un anno fa

Risolto


calculate the tangent of angle in radians
Calculate the tangent of angle in degrees

circa un anno fa

Risolto


Calculate the base-10 logarithm of a number
Calculate the logarithm of number x

circa un anno fa

Risolto


Determine if a row vector has NaN
Determine if a row vector x has NaN

circa un anno fa

Risolto


Vector with a repeated entry
Create a row vector of length n, filled with 4's. For example, if n = 3, output = [4 4 4]

circa un anno fa

Risolto


ASCII code of a leter.
Given the letter, the output will show the corresponding ASCII code.

circa un anno fa

Risolto


If you have matrix A, create matrix B using matrix A as an "element"
A = [1 2 3 4; 5 6 7 8] B = [1 2 3 4 1 2 3 4; 5 6 ...

circa un anno fa

Risolto


Corresponding ASCII code.
Given the number, the output will show the corresponding ASCII code.

circa un anno fa

Risolto


Log of a number
Write a script that will give the log of x as output.

circa un anno fa

Risolto


Unit conversion
Convert x degree Celsius to y degree Fahrenheit.

circa un anno fa

Risolto


Values in Array
How many values are in the array

circa un anno fa

Risolto


metre to feet converter
The idea is to make a converter, which exchange meters to feets. We use a factor of 1m = 3.281*1f. so 3m are equals to 9.843 m...

circa un anno fa

Risolto


Matrix element wise multiplication
Take two incoming vectors, and multiply them element wise

circa un anno fa

Risolto


Sum two matrices
Take two incoming matrices, and sum them

circa un anno fa

Risolto


Dot Product

circa un anno fa

Risolto


Find Logic 32

circa un anno fa

Risolto


Find Logic 18

circa un anno fa

Risolto


Find Logic 25

circa un anno fa

Risolto


Find Logic 19

circa un anno fa

Risolto


Enlarge array
Given an m-by-n numeric array (A) and a 1-by-2 vector (sz) indicating the dimensions [p q] to enlarge each element, return an (m...

circa un anno fa

Carica altro