Solved


Magic!
Check whether the input matrix is a normal magic square: <http://en.wikipedia.org/wiki/Magic_square> Output the logical va...

mer än 7 år ago

Solved


No Twins?
Write a function that accepts as input a vector and returns the same vector, but retaining only the first occurrence of an eleme...

mer än 7 år ago

Solved


vectorization in N
For a given integer n (n>1), compute the sum f (i) (1 <= i <= n) where f (i) = 1 if n is odd and 2 otherwise.

mer än 7 år ago

Solved


Negative matrix
Change the sign of all elements in given matrix.

mer än 7 år ago

Solved


What percentage?
Calculate the output c as the percentage of a on b for given a and b.

mer än 7 år ago

Solved


Get chain of consecutive characters
Write a function that will output a chain of consecutive characters, given 2 letters as input. It has to work backwards too. Exa...

mer än 7 år ago

Solved


Design a function to perform convolution on 2 vector of numbers
The function should accept 2 one dimensional vectors of any length and compute the convolution between these 2 vectors and store...

mer än 7 år ago

Solved


Convolution of vectors
Find the convolution of the 2 vectors.

mer än 7 år ago

Solved


Decimal to Binary
Create a function that returns the binary of a decimal number. Decimal number is given as 6

mer än 7 år ago

Solved


Quantization
3-bit ADC channel accepts analog input ranging from 0 to 5 volts, determine the number of quantization levels.

mer än 7 år ago

Solved


Determine if number is even
Your function should return true if input x is even, else return false

mer än 7 år ago

Solved


plot the following analog signal with frequency of 150Hz
x(t)= 4 sin(2*pi*150t) T=0.005s plot it to 0.2s period

mer än 7 år ago

Solved


Quantization Level
Given an 3-bit Quantizer ranging from 0-5 Volts, Determine the number of quantization level.

mer än 7 år ago

Solved


Determine the number of quantization levels
m is the number of bits used in ADC determine the number of quantization level

mer än 7 år ago

Solved


find the required sampling frequency
find the required frequency in order to sample this signal and recovered back using law pass filler : signal= 4.5*sin (2*pi*1...

mer än 7 år ago

Solved


Signal sample
Find the no. Of quantisation level of signal with 6-bits.

mer än 7 år ago

Solved


Find the binary code
Given a sinusoidal signal, create a function that returns the binary code of a quantized value. The function takes the bit lengt...

mer än 7 år ago

Solved


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

mer än 7 år ago

Solved


Return unique values without sorting
If the input vector A is [42 1 1], the output value B must be the unique values [42 1] The *values of B are in the s...

mer än 7 år ago

Solved


Matlab Basics - Convert a row vector to a column vector
Write a script to convert a row (e.g. x = [1 2 3]) to a column (e.g. y = [1;2;3]), your script should be able to do this for any...

mer än 7 år ago

Solved


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.

mer än 7 år ago

Solved


Initialize a Natural Number matrix.
Given length of matrix initialize a matrix consisting of natural numbers from 1 to n: n = 10; x = [ 1 2 3 4 5 6 7 8 9 10]; ...

mer än 7 år ago

Solved


Kinetic Energy
Given the mass m and velocity v of an object, determine its <http://en.wikipedia.org/wiki/Kinetic_energy kinetic energy>.

mer än 7 år ago

Solved


Matlab Basics II - Unit Conversion
Write a function that converts Kg to lbs, returns the answer to the nearest 1/100th of a pound

mer än 7 år ago

Solved


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

mer än 7 år ago

Solved


Power supply: 230V to 115V
The problem is simple: we have a wall outlet which supplies 230V and an apparatus that requires 115V. Software is always chea...

mer än 7 år ago

Solved


Vector Magnitude Calculator
'a' is a vector that starts at the origin and ends at (x, y). Find ||a||. Hint: It is as simple as "ABC".

mer än 7 år ago

Solved


Create a vector
Create a vector from 0 to n by intervals of 2.

mer än 7 år ago

Solved


Find out missing number from a vector of 9 elements
You are given a vector of size 9, x = [x1 x2 x3 x4 x5 x6 x7 x8 x9] Elements of x may be randomly selected without repeati...

mer än 7 år ago

Solved


Vectors counting by 2
Create a vector numbers from 7 to 15 in increments of 2

mer än 7 år ago

Load more