Gelöst


Mirror Image matrix across anti-diagonal
Given an input number x, create a mirror image matrix 'Y' across the anti-diagonal. For example, if x=3, Y = [1 2 3; ...

etwa 2 Monate vor

Gelöst


Basics: Divide integers to get integer outputs in all cases
Divide integers a and b in such a way that output y is always an integer (in ceil manner)

etwa 2 Monate vor

Gelöst


Calculate the peak value of square wave
Given the peak value of sine wave, calculate corresponding peak value of square wave, if both have same RMS voltage.

etwa 2 Monate vor

Gelöst


Square wave average calculation
Given its peak and duty cycle, calculate avg value of square wave

etwa 2 Monate vor

Gelöst


Calculate distance travelled when given radius and rotations
When given radius of wheel and number of rotations calculate total distance travelled consider pi=3.14

etwa 2 Monate vor

Gelöst


Calculate value of capacitor
Given the value of resistance and time at which capacitor charges to it's 99%. calculate the value of capacitor

etwa 2 Monate vor

Gelöst


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

etwa 2 Monate vor

Gelöst


Singular Value Decomposition
Calculate the three matrices of the singular value decomposition (A = U*S*V^T) for each provided matrix. U and V are square unit...

etwa 2 Monate vor

Gelöst


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.

etwa 2 Monate vor

Gelöst


Finding sum of even numbers in a vector.
Find the sum of all the even numbers present in the input vector x. Examples: Input x = [1 2 3 4] Output y is 6 Input...

etwa 2 Monate vor

Gelöst


Sort by absolute value
Given a list of numbers, arrange them in ascending order based on their absolute values. For example, for the list [-30, -5, 1...

etwa 2 Monate vor

Gelöst


Remove Unique Elements
Given a list of integers, we want to keep only the non-unique elements in this list. To do this, we need to remove all the uniqu...

etwa 2 Monate vor

Gelöst


Solving a quadratic equation
Given a, b ​​and c, Return the solution of the following quadratic equation: a*x^2 + b*x + c = 0.

etwa 2 Monate vor

Gelöst


Divisors of an integer
Given a number N, return a vector V of all integers that divide N. For example, N = 10 Then V=[1 2 5 10]

etwa 2 Monate vor

Gelöst


What's Your BMI?
Find the body mass index. For reference, please refer to Wikipedia here: <http://en.wikipedia.org/wiki/Body_mass_index body ...

etwa 2 Monate vor

Gelöst


Find hen's weight.
If hen weights x kilos on two legs, how much does it weights on one leg? Output the result.

etwa 2 Monate vor

Gelöst


intervals
Write a function that takes an interval from a to b, and divides it into 6 parts.

etwa 2 Monate vor

Gelöst


vectors counting by 5
Create a vector with numbers from x_min to x_max in increments of 5.

etwa 2 Monate vor

Gelöst


Stacking vectors into a matrix
Given a 4x1 vector a, and a 2x2 matrix b, create a matrix M in which the first 2 rows are each identical to a and the last two r...

etwa 2 Monate vor

Gelöst


Check if inputted variable is a string or a number
Check if a inputted variable is a number or a string, given a string input (i.e. '1' is 1 and thus a number, 'a' is a string).

etwa 2 Monate vor

Gelöst


Determine if the square root is an integer.
Write code that returns true if perfect square and returns false if square root is not an integer.

etwa 2 Monate vor

Gelöst


Find NaNs in the matrix
Return 1s wherever there is a NaN in the input matrix

etwa 2 Monate vor

Gelöst


Bag of apples
find probabilty of getting red apples from a bag of 'r' red and 'g' green apples.

etwa 2 Monate vor

Gelöst


Convert hex color specification to MATLAB RGB
Here's something that comes up all the time if you deal with web pages. Given a <http://www.w3schools.com/html/html_colors.as...

etwa 2 Monate vor

Gelöst


Getting the absolute index from a matrix
This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to get the <http://www.ma...

etwa 2 Monate vor

Gelöst


Calculate the height of an object dropped from the sky
Assume that an object is dropped from 1000 meters above the surface of the earth at time t=0. The object is dropped such that t...

etwa 2 Monate vor

Gelöst


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

etwa 2 Monate vor

Gelöst


Basic arrays operations.
Apply element-by-element binary operation 'fun' to two arrays (A and B).

etwa 2 Monate vor

Gelöst


Determine if Input is Oddish or Evenish (Odd/Even Sum of Digits)
Given a positive integer n, determine whether n is "oddish" or "evenish" - that is, whether the sum of the digits of n is odd or...

etwa 2 Monate vor

Gelöst


Generate a NaN...on purpose
The goal is to create a function that will return a single "NaN" without using the nan function. I am interested to see how many...

etwa 2 Monate vor

Mehr laden