Gelöst


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.

fast 10 Jahre vor

Gelöst


Modified Upper Matrix Mock
Given a vector v=[1 3 6 9 11], turn it into a matrix 'ramp' like so: m=[1 3 6 9 11; 0 3 6 9 11; 0 0 6 9 11; 0 0 0 9 11; 0 0 0...

fast 10 Jahre vor

Gelöst


Circular Shift Me
Given a vector v=[1 3 6 9 11], circular shift them while iterating m=[1 3 6 9 11; 11 1 3 6 9; 9 11 1 3 6; 6 9 11 1 3; 3 6 9 1...

fast 10 Jahre vor

Gelöst


Derive Me Crazy
Given a polynomial, output its derivative. Example: input = [1 0 0] % x^2 output = [2 0] % 2x

fast 10 Jahre vor

Gelöst


Integrate Me
Given polynomial, output the integral (with k = 1 for simplicity purposes) Example: input = [2 1] % 2x+1 output = [1 1 1]...

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


Create Truth Table of Size according to input
Create a Truth Table Example: n = 3 output = [0 0 0; 0 0 1; 0 1 0; 0 1 1; 1 0 0; 1 0 1; 1 1 0; 1 1 1]

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


Set x value to each odd index of vector y.
Set x value to each odd index of vector y.

fast 10 Jahre vor

Gelöst


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]

fast 10 Jahre vor

Beantwortet
How to use arrayfun with a function having two vector arguments?
A = arrayfun(FUN, B, C, ...) evaluates FUN using elements of arrays B, C, ... as input arguments. The (I,J,...)th el...

fast 10 Jahre vor | 0

Beantwortet
I would to save the variables in a file txt or csv with a push button, can help me someone?
save ('filename.csv','mentaldemand','physicaldemand','temporaldemand','performance','effort','frustration') Try the above ...

fast 10 Jahre vor | 0

Gelöst


Create square matrix with given conditions.
Create square matrix which should be like given matrix M. M = [ n^2 n*(n-1) n*(n-2) ... n*2 n; n*(n-1)...

fast 10 Jahre vor

Gelöst


Weighted Convolution
Given two input vectors x = [x_1, x_2, ..., x_K] and y = [y_1, y_2, ..., y_K] of equal length, compute the weighted convolution ...

fast 10 Jahre vor

Gelöst


I told you not separate me, but you did :( - ACDC
Given input vector, output it's DC and AC value Example: input = 0 1 -1 0 ac = 0 1 -1 0 dc = 0

fast 10 Jahre vor

Gelöst


Finding two missing number in 1 to n array
You are given an array of numbers from 1 to n with two missing numbers. Return the two missing numbers. Input: x=[5 2 0 1 ...

fast 10 Jahre vor

Gelöst


Calculate the hypotenuse of a right triangle without using ^ and sqrt ()
Find out the hypotenuse of right triangle. Say a = 4, b = 3 then c = 5 Please don't use ^ and sqrt() function.

fast 10 Jahre vor

Gelöst


extract part elements of matrix into one new matrix
Given a matrix, includes different elements(plus, minus and zero), extract the nonzero elements and form a new matrix. for examp...

fast 10 Jahre vor

Gelöst


Calculate cosine without cos(x)
Solve cos(x). The use of the function cos() and sin() is not allowed.

fast 10 Jahre vor

Gelöst


Calculate sin(x) without sin(x)
Calculate y = sin(x) x = 0 -> y= 0 without the use of sin(x) or cos(x)

fast 10 Jahre vor

Gelöst


i forgot to use capital I
When referring to yourself you should write "I" (capital) and not "i". So correct the input string x, but be aware that other u...

fast 10 Jahre vor

Gelöst


Avengers Assemble!
Given matrix with so many zeroes, trim those zeroes and output a matrix joining all nnz elements Example: input = [0 0 0 0 0...

fast 10 Jahre vor

Gelöst


Determinate if day D is a date that occurs during Daylight Saving Time in Italy
<https://en.wikipedia.org/wiki/Summer_Time_in_Europe>

fast 10 Jahre vor

Gelöst


How many hours are there in a day in Italy?
Remember "European Summer Time"

fast 10 Jahre vor

Gelöst


x&u are two vectors then Y=x+u???
x&u are two vectors then Y=x+u???

fast 10 Jahre vor

Gelöst


Сoncatenate two strings into one
Concatenate two strings, become one strings Example: s1 = 'Hello' s2 = 'world' result = "Hello world "

fast 10 Jahre vor

Gelöst


Calculate cross product
Make function for cross product a=[1 3 2]; b=[2 4 1]; y=function(a,b) y=[-5 3 -2]

fast 10 Jahre vor

Gelöst


Make random permutation
Make random permutation that consist of random number from 1 to n.

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre 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.

fast 10 Jahre vor

Mehr laden