Solved


find the roots of a quadratic equation
for e.g x = [ 2 -1 -3] y = [1.5 -1]

meer dan 3 jaar ago

Solved


calculate RMS voltage
given peak to peak voltage, calculate rms voltage

meer dan 3 jaar ago

Solved


Matlab Basics II - Unit Conversion
Write a function that converts Kg to lbs, returns the answer to the nearest 1/100th of a pound

meer dan 3 jaar ago

Solved


Matlab Basics II - squares
Write a function that takes matrix A, and squares each element in the matrix example: A = [1 2 3] output = [1 4 9]

meer dan 3 jaar ago

Answered
How to write a script to determine whether or not a given year is a leap-year
It's so easy.Can be executed in one line.By this logic,you can print it out. mod(year,4) == 0 && (mod(year,100) ~= 0 || mod(yea...

meer dan 3 jaar ago | 0

Solved


Matlab Basics - Logical Tests I
Write a script to test whether a year number is for a leap year or not. eg. x = 1884 output = 1 eg. x = 3 output = 0

meer dan 3 jaar ago

Solved


Remove all the words that end with "ain"
Given the string s1, return the string s2 with the target characters removed. For example, given s1 = 'the main event' your ...

meer dan 3 jaar ago

Solved


convert matrix to single column
given any matrix, convert it to single column

meer dan 3 jaar ago

Solved


Return 'on' or 'off'
When the input is true, return 'on', otherwise, return 'off'.

meer dan 3 jaar ago

Solved


Cumulative product of a vector
Cumulative product of a vector example x=[1 2 5 10], then answer must be [ 1 2 10 100] *If you like this prob...

meer dan 3 jaar ago

Solved


Find out total non zero element of matrix
Find out Non zero element of matrix A=magic(5) 17 24 1 8 15 23 5 7 14 16 4 6...

meer dan 3 jaar ago

Solved


Element by element multiplication of two vectors
Given two input vectors, return the element-by-element product. Example A = [1 2 3] B = [7 3 1] The answer should be...

meer dan 3 jaar ago

Solved


Find out value of sine given by degree.
Find out value of sine given by degree. If theta=30, it's value must be 0.5.

meer dan 3 jaar ago

Solved


Find the Pattern 9

meer dan 3 jaar ago

Solved


Find the Pattern 10

meer dan 3 jaar ago

Solved


Find the Pattern 4

meer dan 3 jaar ago

Solved


Find the Pattern 3

meer dan 3 jaar ago

Solved


Find the Pattern 2

meer dan 3 jaar ago

Solved


Mode
Find the mode of the vector Assumption: no vector is bimodal Example 1: input=[1 2 3 4 4]; output=4 Example 2: input=[7...

meer dan 3 jaar ago

Solved


Odd times even numbers in a matrix
First count the number of odd numbers in x, then the number of even. Return their product. example: x = [1 2] One odd ...

meer dan 3 jaar ago

Solved


Reshape a Vector
Write a function that accept three inputs. The first one is a row vector S. The second and third arguments are m and n which de...

meer dan 3 jaar ago

Solved


Replace 0 to NaN!
In given matrix A=[1 nan nan; 2 2 nan; nan nan 1]; replace NaN to 0. Use matrix A as a input.

meer dan 3 jaar ago

Solved


Find x in provided equation!
x^2-2*x+1=0 This polynomial can be expressed by using each term's coefficients, such as [1 -2 1]. Using the polynomial ...

meer dan 3 jaar ago

Solved


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 ...

meer dan 3 jaar ago

Solved


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] Hint: Search for the function...

meer dan 3 jaar ago

Solved


Unit conversion
Convert x degree Celsius to y degree Fahrenheit.

meer dan 3 jaar ago

Solved


Write a code that will follow the equation y = x * (x + x) * x.
If x = 5, y = 5 * (5+5) * 5 = 250

meer dan 3 jaar ago

Solved


Determine point is located in a circle or not
Using input [x] and [y], determine the points (x,y) is located inside of circle (x^2+y^2=1) if point is located in circle,...

meer dan 3 jaar ago

Solved


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

meer dan 3 jaar ago

Load more