A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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.

plus de 9 ans il y a

A résolu


reversed alphabet
create the alphabet in reverse

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


Add 2
Add 2 to the input x

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


square root
find square root of a number

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


Nth root
Nth root of a number x

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

Charger plus