Gelöst


Temperature Conversion 2

8 Tage vor

Gelöst


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

8 Tage vor

Gelöst


kmph to mps
convert kilometer per hour to meter per second

8 Tage vor

Gelöst


Matlab Basics - Absolute Value
Write a script that returns the absolute value of the elements in x e.g. x = [-1 -2 -3 -4] --> y = [1 2 3 4]

8 Tage vor

Gelöst


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

8 Tage vor

Gelöst


Sum of first n positive integers
Given n, find the sum of first n positive integers Example: If n=10, then x=1,2,3,4,5,6,7,8,9,10. The sum of these terms is 55

8 Tage vor

Gelöst


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

8 Tage vor

Gelöst


Convert radians to degrees
Given input in radians, output to degrees

8 Tage vor

Gelöst


Multiply a column by a row
* Given a column vector C and and a row vector R. * Output a matrix M. * Every column of M equals to C multiplied by correspon...

8 Tage vor

Gelöst


Temperature conversion
Convert temperature in degrees Celsius (C) to temperature in degrees Kelvin (K). Assume your answer is rounded to the nearest Ke...

8 Tage vor

Gelöst


Arrange vector in ascending order
Arrange a given vector in ascending order. input = [4 5 1 2 9]; output = [1 2 4 5 9];

8 Tage vor

Gelöst


Fahrenheit to Celsius converter
Convert Fahrenheit to Celsius degrees.

8 Tage vor

Gelöst


Temperature Conversion 3
Given a temperature in Celcius, convert it to Fahrenheit.

8 Tage vor

Gelöst


Pizza!
Given a circular pizza with radius z and thickness a, return the pizza's volume. [ z is first input argument.] Non-scored bonus...

8 Tage vor

Gelöst


divide by 5

8 Tage vor

Gelöst


Swap two numbers
Example Input: a = 10 b = 20 Output a = 20 b = 10

8 Tage vor

Gelöst


Project Euler: Problem 10, Sum of Primes
The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below the input, N. Thank you <http:/...

8 Tage vor

Gelöst


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

8 Tage vor

Gelöst


Reverse a matrix
Its simple. You have to reverse a given matrix.

8 Tage vor

Gelöst


Array of Ones
Create a 100 X 100 array of ones.

8 Tage vor

Gelöst


Find the hypotenuse
Given a and b (the two sides of a right-triangle), find c, the hypotenuse.

8 Tage vor

Gelöst


Transpose
Write a MATLAB script in order to convert a random length row vector (v) into a column vector.

8 Tage vor

Gelöst


Linear system of equations
Solve the system of equations in three variables.

8 Tage vor

Gelöst


Insert zeros into vector
Insert zeros after each elements in the vector. Number of zeros is specified as the input parameter. For example: x = [1 2 3 ...

8 Tage vor

Gelöst


MATLAB Basic: rounding IV
Do rounding towards plus infinity. Example: -8.8, answer -8 +8.1 answer 9 +8.50 answer 9

8 Tage vor

Gelöst


MATLAB Basic: rounding III
Do rounding towards minus infinity. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 8

8 Tage vor

Gelöst


MATLAB Basic: rounding II
Do rounding nearest integer. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 9

8 Tage vor

Gelöst


MATLAB Basic: rounding
Do rounding near to zero Example: -8.8, answer -8 +8.1 answer 8

8 Tage vor

Gelöst


Inner product of two vectors
Find the inner product of two vectors.

9 Tage vor

Gelöst


Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not to use d...

9 Tage vor

Mehr laden