A résolu


Create cosine function out of sine
Please dont use cos(x) directly

plus de 2 ans il y a

A résolu


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

plus de 2 ans il y a

A résolu


Rotate matrix by -90 degrees
Rotate a Matrix by -90 degrees Example: X = 1 2 3 4 5 6 7 8 9 output = 7 4 ...

plus de 2 ans il y a

A résolu


Sum two matrices
Take two incoming matrices, and sum them

plus de 2 ans il y a

A résolu


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

plus de 2 ans il y a

A résolu


Matrix Max Finder
Output the maximum value in a matrix

plus de 2 ans il y a

A résolu


Find the mean of two vectors
Take two vectors, and output the mean of them (bonus if you don't use the in-built mean function)

plus de 2 ans il y a

A résolu


Matrix multiplication
Multiply two incoming matrices via matrix multiplication

plus de 2 ans il y a

A résolu


Sum the rows
Sum the rows of the given matrix. Example x = [ 1 2 3 4 ] y = [ 3 7 ]

plus de 2 ans il y a

A résolu


Transpose of matrix
Transpose of matrix as per test cases

plus de 2 ans il y a

A résolu


Average speed for the entire trip
The input is two speeds (for the trip and return trip) and output is average speed. Assume units are consistent, say miles per h...

plus de 2 ans il y a

A résolu


Rotate a matrix for 180 degree
Rotate a matrix for 180 degree for eg: x=[1 2 3 4] y=[4 3 2 1]

plus de 2 ans il y a

A résolu


prime test
find largest 2 digit prime number

plus de 2 ans il y a

A résolu


Convert Kilometers to Miles
Convert kilometers to miles. Consider 1 km = 0.62 mile. Note: Don't use the '*' operator.

plus de 2 ans il y a

A résolu


Find out value of polynomial at different value.
Find out value of polynomial at different value. Example p(s) = s + 8 For s=0, value is 8.

plus de 2 ans il y a

A résolu


Divide by 4
Given the variable x as your input, divide it by 4 and put the result in y.

plus de 2 ans il y a

A résolu


Create tangent function out of sine function only
Please don't use cosine and tangent functions

plus de 2 ans il y a

A résolu


Create sine function out of cosine
Please don't use sin(x) directly

plus de 2 ans il y a

A résolu


Negative matrix
Change the sign of all elements in given matrix.

plus de 2 ans il y a

A résolu


Getting the row and column location from a matrix
This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to get <http://www.mathwo...

plus de 2 ans il y a

A résolu


Find the area of a rectangle if length of the diagonal is given.
if length of a diagnonal in rectangle is 5. Its area is 12.

plus de 2 ans il y a

A résolu


Create a constant offset.
Add a constant offset to an array. Example a = [1 3 5 9] offset = 2 y = [3 5 7 11]

plus de 2 ans il y a

A résolu


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

plus de 2 ans il y a

A résolu


Nth root
Nth root of a number x

plus de 2 ans il y a

A résolu


Basic commands - rounding
make a function which will round to integer, which is nearer to zero. Example x=[-2.5 2]; y=[-2 2];

plus de 2 ans il y a

A résolu


Find the index of n in magic(n)
If input n=5, then magic(n) is 17 24 1 8 15 23 5 7 14 16 4 6 13 20 22...

plus de 2 ans il y a

A résolu


Determine the length of a string of characters
Determine the length of a string of characters

plus de 2 ans il y a

A résolu


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

plus de 2 ans il y a

A résolu


Test
Answer the question and the correct answer write in vector. Only one answer is correct. 1a Yes 1b No 1c No 1d No ...

plus de 2 ans il y a

A résolu


Matlab Basics - Pick out parts of a vector
Consider x a vector of length >= 7 (there are at least 7 elements in the vector, write a script that extracts the 2nd element, a...

plus de 2 ans il y a

Charger plus