A résolu


Non trivial identities - summation
Return x by adding a random number to it.

presque 10 ans il y a

A résolu


Non trivial identities - differentiation
Return x by differentiating it.

presque 10 ans il y a

A résolu


Combine the digits to output numbers
input could be of any length e.g. 1. in1 = 1 in2 = 2 output = 12 2. in1 = 2 in2 = 1 in3 = 0 output = 210

presque 10 ans il y a

A résolu


Recursion at variable input
input of any length a =2 b =2 c =3 output = (a^b)^c = 64

presque 10 ans il y a

A résolu


Move if I am Optimus Prime
If the number is a prime, roll out!

presque 10 ans il y a

A résolu


Leap year or Not
Check if a given year is Leap year or not.

presque 10 ans il y a

A résolu


Sort matrix a according to ascending order of B!
To be specific, A=[9 3 1 3] B=[1 3 2 4] are provided, ascending sorting of B is [B(1) B(3) B(2) B(4)]. Thus ...

presque 10 ans il y a

A résolu


Roots of a quadratic equation.
Calculate the roots of a quadratic equation, given coefficients a, b, and c, for the equation a*x^2 + b*x + c = 0.

presque 10 ans il y a

A résolu


How Far Can You Throw Something?
As you probably learned in your high school physics class, throwing an object at a 45 degree angle will give you the maximum ran...

presque 10 ans il y a

A résolu


Check given number is odd or even
Using input [x], check given number is odd or even if x is odd, output should be true.

presque 10 ans il y a

A résolu


Extract a part of matrix!
There is matrix A A=[1 2 3; 4 5 6; 7 8 9] Extract a part of matrix A from (2,2) to (3,3). Result should...

presque 10 ans il y a

A résolu


Calculate polynomial equation
Calculate this equation using given x 1+x+x^2+x^3+....x^99 (hint: use polyval)

presque 10 ans il y a

A résolu


Print true if
all elements are larger than 5 a=[1 3 5 8 6]; b=[6 6 6 6 6]; function(a) should be false, and function(b) will be tru...

presque 10 ans il y a

A résolu


Delete x value in given vector y.
Delete x value in given vector y. Exapmle x=5; y=[ 1 2 5 6 74 5 2 5] result=[1 2 6 74 2]

presque 10 ans il y a

A résolu


Conduct inner product using given matrix
a=[1 2 3]; b=[3 4 5]; y=function(a,b) Output y should be 26

presque 10 ans il y a

A résolu


Half wave rectifier
Create a function that emulates a half wave rectifier. Use a sine wave

presque 10 ans il y a

A résolu


Full Wave rectifier
Create a function that emulates a full wave rectifier. Use a sine wave

presque 10 ans il y a

A résolu


Clamper Function
Create a function that emulates a clamper circuit Given sin wave, t and the constant value for clamping

presque 10 ans il y a

A résolu


Modified run-length companion vector
Given a vector x, return a vector that indicates the run length of any value in x. Each element in output vector shows how many ...

presque 10 ans il y a

A résolu


Delete useless part of data
When someone deals with big data. if the person delete useless part, calculation will be more faster than before deleting. De...

presque 10 ans il y a

A résolu


Given X and Y, Get the Displacement Travelled
Given startX, start Y, endX and endY Get the displacement travelled %x = [startX endX] %y = [startY endY] x = [0 3]; y = [0...

presque 10 ans il y a

A résolu


Solar panel efficiency
Calculate the solar panel efficiency at STC for the system power rating 400W and the collector area = 2.79 meter square.

presque 10 ans il y a

A résolu


Exponential Growth and Decay
Calculus time!! Find dx/dy or (k) Given y(0), y(t) and t

presque 10 ans il y a

A résolu


Some tweaks in summation, Can you decode? :)
There are some tweaks in summation that you might observe via test suites Try if you can

presque 10 ans il y a

A résolu


Add Me To Death (Sum sum sum)
Given certain vector, sum of the input vector, get the sum of 2 adjacent numbers in the input, and sum of the output vector (wh...

presque 10 ans il y a

A résolu


Annoying population
Every year the number of annoying persons in the office triples Found the population, given a(0) and t

presque 10 ans il y a

Réponse apportée
How to genneral a repeat array
You can use repelem function to accomplish your question a = 1 2 3 4 >> repelem(a, 3) ...

presque 10 ans il y a | 0

| A accepté

A résolu


DC-DC boost converter
Find the output voltage of a DC-DC boost converter when its input voltage is 12V and the duty cycle ratio is 0.6.

presque 10 ans il y a

A résolu


Modulation index
The amplitude of the carrier signal is 2V and the amplitude of the modulating signal is 8V. Find its modulation index.

presque 10 ans il y a

A résolu


what can you get for exactly amount of money
You go to store, where each product has price. Prices are in vector s = [ 195 125 260 440 395 290] and you have amount ...

presque 10 ans il y a

Charger plus