Questions tagged [matlab]
MATLAB (MATrix LABoratory) is a numerical computing environment and a fourth-generation programming language. Use this tag with care.. see excerpt.
3,069
questions
1
vote
0
answers
7
views
Redirecting audio signals coming from a JACK audio connection kit client to MATLAB/Simulink in linux
Description of my scenario
My main computer is connected through network as a JACK client to an embedded board working as master with a loopback connection via I2S to another board that acts as a ...
0
votes
0
answers
19
views
How can I replace System Toolbox, like phased.ULA() and phased.PhaseShiftBeamformer(), by pure Matlab code? [closed]
I'm doing a Matlab project, the aim of this project is to remove system toolbox, only use pure Matlab code. there are two system toolbox, I have no idea how to replace them. I pasted the code below:
<...
0
votes
0
answers
20
views
Can't get velocity right in the range-doppler map of a received signal from 1 target
I have written a code that simulates a target at 400 m and velocity of 100 m/s.
I calculated tau_t the time delay due the the range and the velocity, then I created a received signal from the ...
2
votes
2
answers
141
views
What does really Time Chirp contribute to Range and Doppler estimation in FMCW radar signal?
As I started researching FMCW radar signals, I discovered a popular reference code for FMCW simulation in Github. One of the most important things that I still don't understand is the parameters ...
1
vote
0
answers
39
views
Calculation of the discrete cosine transform
I am wanting to use the discrete cosine transform to relate the autocovariance function of a process to its periodogram. Following Chris Chatfield's book (Time Series Analysis, p129), I am wanting to ...
0
votes
0
answers
14
views
Computing Channel Power from file containing RMS measurements from tri-axial spectrum analyzer
I have some files from a spectrum analyzer in RMS mode equipped with a tri-axial antenna. I am supposed to compute the channel power evolution for two distinct LTE channels.
I have files containing ...
0
votes
0
answers
30
views
Driving bandpass DSM with tone close to full-scale - stability issue?
I am experimenting with Dr. Schreier's DSM toolbox for MATLAB. I stumbled over a strange phenomenon when having a look at a bandpass DSM in demo-script 2. If I increased the amplitude of the test-tone ...
1
vote
0
answers
25
views
RLS Adaptive Filter for estimating signal
I am currently working on a project where i am to estimate a signal x_T using x_1 and x_2 with an RLS filter.
I have a problem where i don't quite get the results i am looking for. I think there is a ...
1
vote
0
answers
24
views
image processing ideal LPF using matlab
I made ideal LPF, but result filter image doesn't exist.
Plz give me advice
...
2
votes
1
answer
158
views
How to interpret integer coefficients for a filter generated by Matlab
I have always used high-performance 32-bit microcontrollers with hardware FPU support. To calculate the coefficients of digital filters, I used the fdatool package in Matlab. I used single-precision ...
0
votes
0
answers
19
views
Noise on microscopy data
I have to analyze beating cardiomyocytes. In order to do so, I have written a Matlab script to replicate the method found in Béland et al., Front. Physiol. (2022) (doi: doi.org/10.3389/fphys.2022....
0
votes
0
answers
17
views
Allan deviation correct with one-side noise but wrog with two-side noise. Why?
I'm developing a Simulink model for noise according to the description of the algorithm of Accelerometer in this page: IMU simulation model.
My system takes the RandomWalk (defined in [unit], being ...
0
votes
0
answers
24
views
Incorrect velocity in range doppler map
I am trying to simulate tx, rx and if signals and from the if signal, compute the range and doppler of the target. In the function below, when i generate the range doppler heatmap, i am getting range ...
2
votes
2
answers
99
views
Use DFT (`fft()`) to Replicate 2D Convolution (`conv()`)
In MATLAB, I tried to convert the fft2-based multiplication using conv2.
...
0
votes
0
answers
8
views
problem with GSAFT (backprojection) algorithm for nearfield millimeter-wave image reconstruction on my simple planar array
I have a planar array containing 16 transmitters and 88 receivers located on the same plane with dimension 30cm-by-30cm. I have an object of size 6cm-by-6cm. Object and antenna array plane are in ...
5
votes
1
answer
79
views
How does function c2d in MATLAB manage fractional delay?
the function c2d allows to convert a continuous laplace transfer function to a discrete z-transform transfer function. The base method is the Zero Order Holder. In example:
...
1
vote
0
answers
21
views
Get FFT from a Wav after a hanning filter with 25% overlap?
I have a program that allows me to record wav and get the FFT all at the same time.
However, the FFT I have I can't export it to work with. So I need to make a script to get it from the wav.
Can ...
1
vote
0
answers
35
views
Filter coefficients conversion from Matlab for FPGA, follow up
My question is a follow up of original question, specifically the answer provided by @Dan Boschen Dans answer.
The question is about converting floating point coefficients to fixed point signed ...
0
votes
0
answers
27
views
Beginner help with raised cosine graph of impulse in Matlab
Hi I'm looked to graph a Raised Cosine Bell Curve according to ones similar presented in the linked article. I have no experience with MatLab, and have found little luck scowering this and other sites ...
1
vote
1
answer
65
views
Why is the FFT of an even real valued vector not real?
I am trying to find the PSD of a signal by taking the DFT of its auto-covariance sequence.
My code is as follows
...
1
vote
0
answers
22
views
USRP N210 B & F Lights
During setup of a USRP N210 on MATLAB's Communications Toolbox Support Package for USRP Radio, the initial test failed on "Receive the signal and verify the frequency of the tone" field. ...
0
votes
0
answers
37
views
Cannot understand a simple example in Phased Array System Toolbox (MATLAB), regarding FREE SPACE
I am learning about radar and signal processing. I try to run a simple code snippet provided on Mathwork's official website
It is just about FREE SPACE, which I think you know very well, but I am new ...
0
votes
0
answers
44
views
Phase correction of a received signal
How is it possible to correct the possible phase distortion of a typical signal which has been received by an antenna and passed through different analog elements including an amplifier and a band ...
1
vote
1
answer
149
views
How can I plot a sinc function correctly?
I am generating a rectangular pulse using a piecewise function on Matlab. I have listened to some advice to use a normalization coefficient and the amplitude appears correct now. However, my issue is ...
1
vote
0
answers
54
views
SAR Doppler centroid estimation
I read book Comming Wong Digital Processing of Synthetic apperture, where they describe in detail various metods for estimation doppler centroid. Fractional part and resolve ambiguous.
But in tne ...
1
vote
0
answers
53
views
How to implement maximum likelihood (ML) detector in MATLAB?
Consider the MIMO system which has $N_t$ antennas at transmitter and $N_r$ antennas at receiver and uses Generalized space shift keying (GSSK) modulation. The received signal is given by:
$$Y = H X + ...
1
vote
1
answer
85
views
Is my Matlab solution to the below question correct?
I am not experienced at all with Matlab and I just wanted to verify that I am doing this correctly. The question is:
Consider the case of a sinusoidal signal whose amplitude is modulated by a train of
...
0
votes
1
answer
32
views
Multipath Propagation Correction for LTE signals
How can I correct multipath propagation for LTE signals generated from different eNodeBs?
My end goal is to implement localization of my USRP using LTE or FM signals. Currently I am carrying out a few ...
1
vote
1
answer
65
views
IFFT caused inverted phase
I've created ifft of signal:
Wf=[0 zeros(1,19) conj(W) zeros(1,6000) flip((W)) zeros(1,19)];
w=real(ifft(Wf));
Now take a look ...
1
vote
1
answer
71
views
Discrete Time Filtered White Noise
Theoretically, the variance of a filtered white noise should be:
$$\sigma^2 = \int_{-\infty}^\infty \frac{N_0}{2}|H(f)|^2\,\mathrm df = \int_{-\infty}^\infty \text{PSD}_{\text{new}}(f)\,\mathrm df$$
...
0
votes
0
answers
16
views
Any demonstration of ITU-R SA.2183 (Method for calculating link performance in the space research service)?
I'am looking for demonstration of ITU-R SA.2183 (2010-10 edition), in MATLAB or Mathematica.
I have written some Mathematica code, any help would be appreciated.
...
2
votes
0
answers
17
views
how is the formula of Xss in the numerical method for MATLAB derived?
On pages 193 and 194 of the book 'Control of Power Electronic Converters with Microgrid Applications' by Arindam Ghosh and Firuz Zare (the section can be viewed here), the author derived the steady-...
1
vote
2
answers
63
views
Can the number of subcarriers/user be greater than 12 in 5G?
In 5G, I think 1 resource block (RB) carrier is 12 subcarriers. So one user uses 12 subcarriers. But in some research, 612 subcarriers are used for channel estimation research. Is it okay to use more ...
1
vote
1
answer
39
views
Properties of DFT of Circularly Symmetric 2-D Matrices
I'm very new in image processing and trying to get a grasp in the basic concepts in 2-D DFT.
As far as I understood, DFT of a circulant matrix should also be a circulant matrix. But when I define a ...
1
vote
1
answer
57
views
Delayed waves existing MIMO eigenmode transmission
Assume that the numbers of transmitting antennas, receiving antennas, and delayed waves are $N_t$, $N_r$, and $N_p$, respectively. The channel matrix is three-dimensional ($N_r$, $N_t$, $N_p$).
In ...
1
vote
2
answers
40
views
simulation models unique to each researcher? Or use a specific common model?
Are the simulation models used by researchers at each university unique to each university? Or use a specific common model?
I started working on OFDM research at university, but I'm at a loss as to ...
1
vote
1
answer
72
views
5G strandard pilot allocation, channel estimation method
I'm trying to create an OFDM simulation, but I don't know the 5G standard pilot allocation estimation method.
Is this simulation good?
One transmission unit has $64$ subcarriers and $14$ OFDM symbols. ...
0
votes
0
answers
18
views
Any demonstration of ITU P.618-9(Propagation data and prediction methods required for the design of Earth-space telecommunication systems)?
I'am looking for demonstration of ITU P.618-9(Propagation data and prediction methods required for the design of Earth-space telecommunication systems) P.618-9 (Year 2007 version), in MATLAB or ...
0
votes
0
answers
44
views
What am i doing wrong?
How do I remove the noise (long vertical lines) from signal? I am applying AC voltage via function generator which is amplified by the power amplifier to a 6mm thick steel specimen. The signals are ...
1
vote
2
answers
271
views
Inverse fft does not give back the same image
I tried to Fourier decompose my image using FFT and reconstruct it back using IFFT. While I did this, I noticed something peculiar:
The first image is the regular one, and the second is the image I ...
1
vote
0
answers
103
views
How to get an impulse response of a MIMO system?
So I have data vectors from a MIMO system and I wish to see the impulse response
Any idea how I can proceed with this?
0
votes
0
answers
10
views
How to reconstruct MMW image using electrical field in each direction at Receiver points using Back projection algorithm
I have used a structure including 109 Receivers and 4 transmitters in order to do MMW imaging(multistatic imaging). Imaging was done in 3 different frequencies. So, now I have electrical field in each ...
1
vote
2
answers
52
views
Matlab - dfilt filter produces different results for SOS and normalized SOS
I think the title says it all. Anyone could provide a solid answer to why it happens? Here is a sample code to replicate the issue.
...
0
votes
2
answers
70
views
Uncertainty error in phase and amplitude results of FFT MATLAB
I understand that the Matlab function FFT gives the amplitude and phases. Is there a way to find out or approximate the errors on those values?
2
votes
1
answer
67
views
Help with Implementation of Transfer Function using Python or MATLAB
Relatively new to the DSP side and wanted some help to implement this approach using Python (with NumPy, SciPy libraries) or via MATLAB.
Background of the problem:
I'm running a linear dynamic loads ...
0
votes
0
answers
43
views
How can I find the impulse responce of this ODE?
$$ \frac{𝑑^2𝑦(𝑡)}{𝑑𝑡^2} + 2\frac{𝑑𝑦(𝑡)}{𝑑𝑡}+ 1 = 2𝑥̈(𝑡)$$
a. Write Matlab source code evaluate the impulse response of the system.
b. Write Matlab source code to evaluate and plot ...
1
vote
0
answers
54
views
Incorrect Power Calculation in MATLAB Convolution
I have been working on a MATLAB code to perform convolution and calculate the power of the resulting signal. However, I have encountered an issue with the power calculation in my code.
I am convolving ...
1
vote
1
answer
91
views
How to calculate the following mutual infomation between $X$ and $Y$ in matlab or python?
Recently I meet the following question: Let $X\in {\mu_1,\mu_2,\cdots,\mu_m}$, $Y \in {R_1,R_2,\cdots,R_n}$, where $\mu_i, i = 1,2,\cdots,m$ is means of $m$ gauss probablity density function, $Y$ is ...
0
votes
0
answers
40
views
Why does FFTPack 5.1 not give the same complex numbers as Matlab's FFT2 command does?
I'm doing FFT2 with FFTPack 5.1 and it's working great. But it does not give the same result as Matlab's FFT2 command.
Turning Time domain -> Frequency domain -> Time Domain give the same result ...
2
votes
1
answer
57
views
Comparing results for spectrum generating in matlab using STFT and Filterbank approach
To analyse data in the frequency domain I often use functions like stft() in Matlab. Inspired by this video and this article I have compared the results of ...