Respondida
I'm trying to generate a code that calculates the fourier series coefficients of a period.
Fs = 1000; dt = 1/Fs; t = (0:dt:10-dt)'; N = size(t,1); x = ones(N,1); x(t>=5) = -0.5; X = fftshif...

alrededor de 12 años hace | 1

Respondida
TF function on Simulink
Multiplication is not the same thing as convolution. This approach will not work. You need to write a function that performs c...

alrededor de 12 años hace | 0

Respondida
Matlab simulation problem about ifft
Let me introduce some commonly used terminology that I think will help you out. Based on what you are saying, you want to have ...

alrededor de 12 años hace | 0

Respondida
Problem with for loop
No need for a |for| loop, no need for square brackets. Also, might as well pull common scale factor out using distributive prop...

más de 12 años hace | 0

| aceptada

Respondida
Matlab simulation problem about ifft
Here is a start: dt = 1e-9; Fs = 1/dt; N = 10; t = dt*(0:N-1)'; x = (rand(10,1) > 0.5); X = fft(x)...

más de 12 años hace | 0

Respondida
Matlab simulation problem about ifft
In your code, I see where you have defined _A_ as a function of _X_, but I do *not* see where you have defined _x_ as a function...

más de 12 años hace | 0

Respondida
what is difference between fft(x) & fft(x,n)
Compare: >> dF_1 = fs/length(z) with: >> dF_2 = fs/length(z1)

más de 12 años hace | 0

Respondida
How do I insert many variables(upto 100) into one function?
B = zeros(100,1); B(1) = 1; B(2) = 2; B(3) = 4; B(4) = ... B(5) = ... ... ... B(100) = ... save('...

más de 12 años hace | 0

| aceptada

Respondida
How can I plot the variability of a large data set?
>> doc hist >> doc boxplot >> doc mean >> doc std >> doc min >> doc max

más de 12 años hace | 0

| aceptada

Respondida
plot each 20th spectra
plot(rat_Approach(:,3960:20:4604));

más de 12 años hace | 0

| aceptada

Resuelto


Sum of odd numbers in a matrix
Find the sum of all the odd numbers in a matrix. Example x = [2 3 5 7 1 4 11] y = 27

más de 12 años hace

Resuelto


Edges of a n-dimensional Hypercube
Return the number of edges on an <http://en.wikipedia.org/wiki/Hypercube _n_-dimensional hypercube> (with an integer n &ge; 0). ...

alrededor de 13 años hace

Resuelto


Number of vertices of a hypercube
Return the number of vertices of a n-dimensional hypercube.

alrededor de 13 años hace

Resuelto


Create a Multiplication table matrix...
Create a product table in this format: P = [ 1 2 3 4 5; 2 4 6 8 10; 3 6 9 12 15; 4 8 12 1...

alrededor de 13 años hace

Resuelto


Generate pi using logarithm
Generate pi using logarithm

alrededor de 13 años hace

Resuelto


Given a 4x4 matrix, swap the two middle columns
If a = [1 2 3 4; 1 2 3 4; 1 2 3 4; 1 2 3 4]; then the result is ans = 1 3 2 4 1 3 2...

alrededor de 13 años hace

Resuelto


Determine the number of odd integers in a vector
Determine the number of unique odd integers in a vector. Examples: Input x = [2 5 8 3 7 1]; Output y = 4; Inp...

alrededor de 13 años hace

Resuelto


Count up then down
Create a function that produces counting up from 0 up to n then down to 0 n=2 --> 0 1 2 1 0 n=3 --> ...

alrededor de 13 años hace

Resuelto


Generate N equally spaced intervals between -L and L
Given N and L, return a list of numbers (in ascending order) that divides the interval [-L L] into N equal-length segments. F...

alrededor de 13 años hace

Resuelto


Determine Whether an array is empty
Input a matrix x, output y is TRUE if x is empty, otherwise FALSE.

alrededor de 13 años hace

Resuelto


Return the first and last character of a string
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

alrededor de 13 años hace

Resuelto


The Dark Side of the Die
It is well-known that opposite sides of a classic hexahedral die add to 7. Given a vector of dice rolls, calculate the sum of th...

alrededor de 13 años hace

Resuelto


Output any real number that is neither positive nor negative
Output any real number that is neither positive nor negative

alrededor de 13 años hace

Resuelto


Right and wrong
Given a vector of lengths [a b c], determines whether a triangle with those sides lengths is a right triangle: <http://en.wikipe...

alrededor de 13 años hace

Resuelto


Sum of diagonal of a square matrix
If x = [1 2 4; 3 4 5; 5 6 7] then y should be the sum of the diagonals of the matrix y = 1 + 4 + 7 = 12

alrededor de 13 años hace

Resuelto


Tell me the slope
Tell me the slope, given a vector with horizontal run first and vertical rise next. Example input: x = [10 2];

alrededor de 13 años hace

Resuelto


Multiply 2 numbers
Very easy, you just have to multiply 2 numbers but you cannot use the following signs (*, /, - ,^) ,mtimes , times, cross, pro...

alrededor de 13 años hace

Resuelto


Fahrenheit to Celsius converter
Convert Fahrenheit to Celsius degrees.

alrededor de 13 años hace

Resuelto


Perimeter
Given a sequence of points forming a closed path (first and last points are coincident) return the perimeter value. For example...

alrededor de 13 años hace

Resuelto


Number of Horns on a unicorn!
Calculate the number of horns on a *unicorn*! And I'm talking about a unicorn with not more than one horn on it!

alrededor de 13 años hace

Cargar más