Answered
Compilation don't work. Why?
Try using Microsoft Visual C++ instead.

13 years ago | 0

Answered
FFT code in Fortran
First, you do not need to use loops in MATLAB to compute the values of vectors and matrices. Second, if you want to compute the...

13 years ago | 0

Answered
how do i take 64 samples from a sine wave and perform 256 point DFT on that?
>> doc fft >> doc fftshift

13 years ago | 0

Answered
how do i take 64 samples from a sine wave and perform 256 point DFT on that?
Fs = 30; dt = 1/Fs; N = 64; t = dt*(0:N-1)'; Fc = 8; x = cos(2*pi*Fc*t); M = 256; ... ...

13 years ago | 0

Answered
Simple for loop question.
dx = 0.01; x = (0:dx:10-dx)'; idx = (x < 5); C = ... D = ... z = ( C + x.^2 / 2 ) .* idx + ( D ...

13 years ago | 0

Answered
root function does not work:(
>> roots(a)

13 years ago | 1

| accepted

Answered
i need a help in [simulink second order equation]
<http://www.mathworks.com/academia/student_center/tutorials/slregister.html Simulink Tutorial>

13 years ago | 0

Answered
how to simplify multi- if statement
aStr = 'ABCDE'; x = uint8(aStr) - 64;

13 years ago | 0

Answered
i need a help in [simulink second order equation]
# Drag four integrators from the Library Browser into your model. # Drag six gain blocks. # Drag two adder blocks and two subt...

13 years ago | 0

Answered
How to generate inphase and quadrature phase of a signal?
z = x + j*y; v = x.*cos(2*pi*Fc*t) - y.*sin(2*pi*Fc*t); I = real(z); Q = imag(z);

13 years ago | 0

Answered
Phase shift degree between 2 waveform
>> doc xcorr

13 years ago | 0

| accepted

Answered
problem with correct frequency units using pwelch or other spectral estimate functions in matlab
fs = 12; % samples per year

13 years ago | 0

| accepted

Answered
Make 3 lines with different values at Y axis
>> doc line

13 years ago | 0

Answered
How to compute sqrt of complex number ?
First method: r = roots([1 0 z]); phi = angle(r); v = r(phi<0); Second method: r = roots([1 0 z]); ...

13 years ago | 2

| accepted

Answered
How to keep track of iterate numbers in variable names?
N = 4; product = zeros(N,1); for k = 1:N product(k) = 3*k; end

13 years ago | 1

Answered
Fourier Transform In matlab
>> doc fftshift

13 years ago | 0

| accepted

Answered
Creating a matrix containing binary vectors as elements
N = 4; A = zeros(3^N,N); for k = 1:N r = N - k; v = [ -1*ones(3^r,1) ; zeros(3^r,1) ; ones(3^r,1)...

13 years ago | 1

| accepted

Answered
Sum all the Channels in matrix
R = sum(M,3);

13 years ago | 0

| accepted

Answered
Convolution of two independent normally distributed random variables
Please try: mean(x) std(x) What does it show? Is it what you expected? Why or why not? Likewise: mean(y)...

13 years ago | 0

Answered
Writing an algorithm into Matlab syntax
Here is a start: count = zeros(3,1); L = xlsread('C:\\Test.xlsx','Sheet1','A1:B730'); N = 99; x = L(1:N,1)...

13 years ago | 0

Answered
Double to cell conversion.
Please try the following instead: isAccurate = ( data(:,1) == 1 ); HTH. Rick

13 years ago | 0

Answered
Need help re: FFT output scaling
Here is a way to clean up the code and make it easier to understand and debug: %% Initialize close all; clear...

13 years ago | 1

Answered
Need help re: FFT output scaling
I think I know why you are getting 0.25 instead of 1.00 for the magnitudes. There are two separate reasons, each one of which i...

13 years ago | 1

| accepted

Answered
Does the MATLAB's ifft()/fft() do any spectral shaping ?
Walter is correct. FFT does not do any shaping. It is an implementation of the DFT, plain and simple. MATLAB does provide add...

13 years ago | 0

Answered
problem with unit circle
Please try: n = 256; dPhi = 2*pi/n; phi = (-pi:dPhi:pi-dPhi); z = exp(1j*phi); C = [ real(z) ; imag(z) ]; ...

13 years ago | 0

Answered
Which is better – LabVIEW or MATLAB?
MATLAB

13 years ago | 1

Answered
FFT example on MATLAB help
You don't _need_ to divide it by |L|, it is purely a matter of scaling the result by a constant, which does not affect the _shap...

13 years ago | 0

| accepted

Answered
How do I find the std of a specific range of data?
Please try: tic; data = load('a.mat'); % this form is faster than % command...

13 years ago | 0

| accepted

Load more