Gelöst


Weighted moving average
x1=[1 2 1]; y1=[1 2 2 4 5 6 6 8]; Make function for weighted moving average. z(i)=(x1(i)*y1(i)+x1(i+1)*y1(i+1)+x1(i+2)*y1...

fast 10 Jahre vor

Gelöst


Replace x value into y value in string text.
Replace x value into y value in string text. Example text='Hello World' x='World', y='Universe' result='Hello Universe'.

fast 10 Jahre vor

Gelöst


Two dimensional moving average
A=[1 2 3 4 5 1 2 2 2 3 2 3 3 3 4 1 1 4 4 2] B=[1 1;1 1]; % This is can be used for weight factor of moving a...

fast 10 Jahre vor

Gelöst


Analyze observation data
There are results of observation. A B C -------------------------- t=1 2.2 2.6 2.4 t=2 2.4 ...

fast 10 Jahre vor

Gelöst


Subtract integers and add doubles
Create a function that subtracts a from b if a and b are integers and adds them if they are floats.

fast 10 Jahre vor

Gelöst


reversed alphabet
create the alphabet in reverse

fast 10 Jahre vor

Gelöst


X plus binary inverted x
Given a n-bits number x, what is the sum of x to the binary inverted version of x? (this might be more simple than you think :-)...

fast 10 Jahre vor

Gelöst


99 bottels of beer...
(don't know the song? -> <https://en.wikipedia.org/wiki/99_Bottles_of_Beer>) Create the count down vector in y

fast 10 Jahre vor

Gelöst


Sum of cubes
Write a program to determine sum of cubes of first n odd numbers.

fast 10 Jahre vor

Gelöst


Find the numeric characters in a string and return their index
Given a string S, return the index of any numeric characters. S = 'The next meeting will be held in 2 weeks.'; idx = fin...

fast 10 Jahre vor

Gelöst


Add 2
Add 2 to the input x

fast 10 Jahre vor

Gelöst


Basic commands - Which matlab files are here?
Please make a function which will list all specific for Matlab files in current folder.

fast 10 Jahre vor

Gelöst


square root
find square root of a number

fast 10 Jahre vor

Gelöst


Find max prime number
Given integer number n. Find the max prime number (mpn) that smaller than or equal to n. Example: n = 10 --> mpn = 7

fast 10 Jahre vor

Gelöst


Calculate the answer to life the universe and everything
<https://en.wikipedia.org/wiki/42_(number)>

fast 10 Jahre vor

Gelöst


BASICS - sum part of vector
Please make a function, where as input you get vector "x" and and vector "c", where in "c" vector you get indexes to sum. Examp...

fast 10 Jahre vor

Gelöst


Basic commands - search path
Please list all search path from Matlab.

fast 10 Jahre vor

Gelöst


Basic commands - amount of inputs
Make a function, which will return amount of given inputs Example: amountinput(1,2,4,3,10) -> 5 , because we gave functio...

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


Strangest ways to get 0
Propose your non-trivial way to get 0. Look mine's, and try to do your best!

fast 10 Jahre vor

Gelöst


Add the even numbers
Add only the even numbers of x example: x = [1 2 3 4 5] the positive numbers are: 2 4, so their sum is 6

fast 10 Jahre vor

Gelöst


Nth root
Nth root of a number x

fast 10 Jahre vor

Gelöst


Which coins to give
I was in shop today. I admired, how shop assistant had to think, which coins to give me. The task is we have a vector v=[0.5 0....

fast 10 Jahre vor

Gelöst


Calculate vowel / consonant ratio of a string
Given a string, calculate the ratio of vowels to consonants for example : x = 'This is a very good Day!' y = 7/11

fast 10 Jahre vor

Gelöst


Vector Multiplication
Vector Multiplication of three matrix as shown in test cases.

fast 10 Jahre vor

Gelöst


Reduce the logic
We have three logical input, x,y and z. The output is: y = ((x&y)|z)&((z|x&y)|(z&y|x))|((x&z)|z)&((y|x&z)|(z&x|y))|(x|y|z) ...

fast 10 Jahre vor

Gelöst


While I am not equal
Iterate by z(input) until not equal to baseline. Output will be equal to number of iterations x = -5 y = 8 z = 3 output = 5

fast 10 Jahre vor

Gelöst


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 1 3 6 9; 0 0 1 3 6; 0 0 0 1...

fast 10 Jahre vor

Gelöst


Money money money
There's a group of men called 5/6. It's like when you borrow $5, you need to pay him $6 Try to code, 5/6 people haha

fast 10 Jahre vor

Gelöst


Network connection between FPGA board and Simulink
­Could I do the connection between a program in simulink matlab containing the model of my system and an altera FPGA board cont...

fast 10 Jahre vor

Mehr laden