Questions tagged [matlab]

MATLAB (MATrix LABoratory) is a numerical computing environment and a fourth-generation programming language. Use this tag with care.. see excerpt.

Filter by
Sorted by
Tagged with
2 votes
2 answers
16 views

Use of "Audacity"for teaching undergraduate labs of digital signal processing?

Can we use"audacity"for teaching undergraduate labs/practicals of digital signal processing? or only MATLAB/Octave should be used? Weblink of "audacity" https://www.audacityteam....
user avatar
  • 831
0 votes
0 answers
21 views

Interpolating Filter for Quadrature Detector with one ADC

Single ADC is sampling at 16000 Hz the I and Q outputs of quadrature detector. So each I and Q signal is sampled at 8000 Hz, with phase offset 90 degrees between them. Bandwidth of interest is 3400 Hz....
user avatar
  • 25
0 votes
0 answers
36 views

Imitate noise audio file with math function

Is it possible to reverse engineer a short white noise audio file and imitate it with a function instead? The file doesn't contain pure white noise, there has been EQ applied to it, also some ...
user avatar
1 vote
1 answer
35 views

Problems designing a notch filter based on allpass in MATLAB

I have to design a notch filter based on an allpass but when I plot the resulting filter in MATLAB it does not fit my specification. I'll provide you with some background. The filter has the following ...
user avatar
0 votes
0 answers
10 views

GMSK Demodulator in Simulink

I am trying to implement a GMSK transmission chain, over AWGN. I tried both the precoded GMSK and the GMSK without precoding, and in principle with the precoding we should see the BER halved. However ...
user avatar
  • 13
1 vote
1 answer
129 views

What does hue, saturation and intensity means in image processing?

I ran some code in matlab to show what is hue, saturation and intensity to get an intuition of what they mean. But the result of the code does not match the explanation i got from here Hue is a color ...
user avatar
0 votes
0 answers
19 views

Scilab - possible to get transfer function, H[z], with negative powers of z?

I use Scilab. Is is possible using Scilab primatives like poly(), horner(), etc., to generate and display a discrete time transfer function with only negative powers of z? I have tried a number of ...
user avatar
  • 115
3 votes
2 answers
183 views

Is it ok to use MATLAB ''freqs" command for Digital filters?

According to my understanding, IIR filters are somewhat analog as they are based upon analog prototypes such as butterworth,chbeyshev etc. Can we usefreqscommand to ...
user avatar
1 vote
1 answer
16 views

Matlab Filter Designer "Filter Information" shows wrong order

I want to design a low pass filter using the Filter Designer tool of Matlab. The filter order should be 10. I chose the Blackman window method and specified the order of the filter. However, "...
user avatar
  • 125
0 votes
1 answer
42 views

Multiplication in frequency domain for a signal containing a whole frequency spectrum

Imagine we have two signals in the frequncy domain X(f) and H(f), for one of the signal H(f) I have the complex pair and the frequncy at which that complex pair exists. The second could be any random ...
user avatar
0 votes
0 answers
20 views

implementation a S/P conversion: different length / in Matlab

I want to compare a linear and a nonlinear implementation gmsk transmitter. A reference of the linear transmitter is chapter 2 , p 77, a reference for the nonlinear design is on p 63, Fig. 2-31 In the ...
user avatar
0 votes
1 answer
35 views

How to decode a MIMO stream using V-BLAST?

I am attempting to implement the V-BLAST algorithm for MIMO streams as described by Wolniansky et al. in the following paper: https://ieeexplore.ieee.org/document/738086 (I am not commenting on its ...
user avatar
0 votes
1 answer
54 views

Confusion regarding frequency spectrum in MATLAB

I am trying to observe frequency spectrum of an audio (mp3) file on MATLAB. The file'abc.mp3' is a 14 second music clip My MATLAB code is below: ...
user avatar
  • 831
0 votes
0 answers
21 views

creating a power vs frequency graph on for different harmonics Matlab

I am trying to create a Power vs Frequency graph for different harmonics(x_5(t), x_20(t), and x_100(t)) of the half triangular wave. I want to see how the difference in power between the original and ...
user avatar
7 votes
3 answers
61 views

How to exclude diffuse moving features in a stack of images

I have some stack of grayscale reconstructed images represented as a 3-dimensional matrix DPC with dimensions [Nz,Nx,Nt]. A ...
user avatar
  • 173
0 votes
2 answers
64 views

How to generate a raised-cosine window with a specific roll-off factor in Matlab?

I have recently started working on signal processing. For a small project, I have to shape cosine signals using a raised-cosine window with certain roll-off factors in Matlab. To give you an example, ...
user avatar
  • 3
1 vote
0 answers
84 views

How to create overlapping frames of input signal for stft using HDL coder for FPGA implementation?

I want to implement stft on FPGA. For this purpose I use HDL coder and the problem is I have no idea how to create overlapping frames of data for further FFT. In my example I want to use 256 frame ...
user avatar
4 votes
1 answer
54 views

Finding and displaying Laplace or Z transform ROC(region of convergence) using MATLAB

Is there any way, we can use MATLAB for finding and displaying Laplace or Z transform Region of convergence?
user avatar
  • 948
2 votes
1 answer
58 views

Confusion regarding Laplace transform calculation in MATLAB

I am trying to learn about Laplace transform and especially about ROC and i found out on this weblink. I have also attached a snapshot of this link and highlighted where it is being said that although ...
user avatar
  • 831
2 votes
1 answer
31 views

Why fir1 from MATLAB returns one more sample than its order?

I'm starting to use both the fir1 MATLAB and firwin Scipy functions. Both are window-based FIR filter design methods. I would ...
user avatar
0 votes
1 answer
25 views

Confusion understanding filter visualization tool output in MATLAB

My MATLAB code is d = fdesign.bandpass(.3, .4, .6, .7, 80, .5, 60); Hd = design(d, 'ellip'); fvtool(Hd) when i run my script , i see two graphs on output ...
user avatar
  • 831
0 votes
2 answers
52 views

How can we compute power spectral density ($P_n$) in Weiner filter?

I have an image which I corrupted with white gaussian noise in order to have SNR (Signal to noise - ratio) 10 dB . I want to apply Weiner filter to image which has noise . If I want to compute Pf I ...
user avatar
2 votes
1 answer
80 views

Fractional Frequency Shifting a Discrete Signal in the Frequency Domain

In our current hardware-based signal processing pipeline, we have a time-domain signal $x[n]$ that we want to frequency shift by $f_0$. To do this, we multiply the signal by a complex exponential in ...
user avatar
  • 55
1 vote
1 answer
26 views

Why I am having phase difference between original and reconstructed signal in this simulink model?How can i remove it?

I am trying to implement sampling and reconstruction using simulink and as far amplitude(magnitude) values are concerned ,i have exactly same values but there appears phase shift when i try to see ...
user avatar
  • 831
0 votes
1 answer
29 views

Does tsa function in matlab assume constant rpm in the same rotation?

I just ran the example code, stepped into the tsa function, and saw the line 139: By looking at the code in the red box, it seems that MATLAB assumes constant rpm in the same rotation and evenly ...
user avatar
  • 11
0 votes
1 answer
30 views

Oversampling ratio ( factor) calculation

I study GMSK modulator. In its simulation we use an oversampling ratio if we implement gaussian filter or oversample the input signal. In my simulation I can test different value of the oversampling ...
user avatar
0 votes
2 answers
42 views

Designing of passband and stopband frequencies

good evening guys, let us consider following image we can see from the picture designing of lowpass filter with given passband region and stopband region, only one thing what i am interesting is ...
user avatar
2 votes
1 answer
55 views

Calculating signal power from Continuous Wavelet Transform

I would like to ask a question about the calculation of the signal power using CWT in Matlab. Assume a signal of length N points with sampling frequency $f_{s}$. Using conventional approach, the power ...
user avatar
  • 21
0 votes
1 answer
81 views

Adding Fractional STO to an OFDM Signal using Frequency Domain Zero Padding

I have an OFDM system. I would like to introduce a fractional delay of (0.25 samples). Therefore: I increase the sampling rate of the OFDM signal by a factor of 4 (via frequency domain zero padding (...
user avatar
0 votes
1 answer
37 views

Weird Pattern in the Power Spectrum diagram (i.e. the frequency domain of the signal)

I am quite a newbie to signal processing. I convert the time-domain signal to the frequency domain with the automated power-spectrum generator in the matlab app. The frequency domain has this ...
user avatar
  • 1
0 votes
2 answers
68 views

Does Zero padding cause noise in the high frequency region?

I have an OFDM system. I would like to introduce a fractional delay of (0.2 samples). Therefore, I increase the sampling rate of the OFDM signal by a factor of 10 (via frequency domain zero padding), ...
user avatar
0 votes
0 answers
55 views

How do I plot a phase spectrum of rectangular pulse with Matlab?

As you can see, I made a code about rectangular pulse like this. And, I plotted complex-exponential-coefficient and Magnitude-Spectrum-of-Complex-Exponential-Form, Phase-Spectrum of-Complex-...
user avatar
8 votes
1 answer
149 views

MUSIC Algorithm for Direction of Arrival (DOA) in Acoustic Signals

I have seen multiple reviews of the MUSIC algorithm for the estimation of DOA. Most of those reviews consider a complex signal input with a complex steering vector. So, how do I implement this ...
user avatar
0 votes
1 answer
26 views

Remaining Fractional part in Matlab loop (for function) [closed]

is there any way that Matlab can deal with the remaining fractional part in Matlab loop. Here is an example: for n=1:3.2 n end this code returns ...
user avatar
0 votes
1 answer
34 views

Having a hard time understanding FIR filter transverse structures

I'm currently learning about FIR filtering from one of my modules and went through topics such as transverse implementation(or structures since I could not find transverse implementation on the net) ...
user avatar
  • 103
1 vote
2 answers
71 views

Filter coefficients conversion from Matlab for FPGA

Filter in Maltab gives me a set of filter coefficients which I want to use in FPGA/VHDL design. in Matlab I work with floating point, in FPGA I cant use it. Will be it correct if I convert the ...
user avatar
1 vote
2 answers
75 views

What could be the possible reason behind curved signal?

I have a MEMS microphone connected to the microcontroller on a PCB. The microphone collects the data and sends the analog data to the microcontroller in real-time. On the microcontroller, this data is ...
user avatar
5 votes
1 answer
139 views

Color Image Watermarking with a Grayscale Watermark

I'm currently working on a project on digital watermarking in a color image. The host image is a color image, and the watermark image that will be embedded is a gray. Is it necessary that the ...
user avatar
  • 61
0 votes
1 answer
36 views

Filtering out correlated data from dropouts

I have two 10Hz signals coming from an analyzer. There is a correlation between dropouts in the current applied and the signal that it produces. The correlations occurs sometimes, but not all the time....
user avatar
  • 11
0 votes
1 answer
56 views

Realisation GMSK modulation in Matlab

I implement a GMSK modulation scheme presented here (p 64 in pdf and copied below) As gaussian density function I use the standard Maltab function gaussfir and ...
user avatar
0 votes
1 answer
189 views

How to generate eye diagram in Matlab ( without communication toolbox)

I want to plot an eye dagram of output of modulator. In Maltab I tried plot( I, Q), but it doesnt give me the diagram. In Matlab there is a function ...
user avatar
0 votes
0 answers
33 views

Convolution of a discrete signal using for loop problem

This is the specification of the LTI system with Input and response I have been asked to compute Convolution of the input and impulse using two for loops and evaluate the Input and Impulse Response ...
user avatar
0 votes
0 answers
25 views

Confusion Understanding the mathematical expression of duality property of dft?

Duality Property for DFT Above dsp.se question provides good understanding about dft duality property but i am having difficulty understanding its mathematical expression because on Google when i try ...
user avatar
  • 948
0 votes
0 answers
14 views

How should I pass a sequence of signal through a finished IIR filter in MATLAB

I am new to IIR filter. Lets say if my input signal is [1 -10 3 6 9], and the sampling frequnecy is $f_{s}=360Hz$, the cutoff frequency is $f_{d}=60Hz$, so the calculated $W_{n}$ is $0.4$. I just use ...
user avatar
2 votes
1 answer
91 views

Fixed-Point Filter Design: Where comes the DC-Gain difference between the bode plot and the step response from?

Introduction: What I wanted to achieve I am currently trying to implement a digital fixed-point filter on a STM32-Microcontroller by using the ARM CMSIS-DSP Library Link to reference manual. The ...
user avatar
  • 25
1 vote
1 answer
117 views

How to generate wideband Gaussian white noise

I want to generate correlated complex white Gaussian noise signals in MATLAB. What I do is that I take complex Gaussian random variables with unit-variance and multiply them with the desired input ...
user avatar
  • 197
0 votes
0 answers
37 views

Binary-Input AWGN Channel Capacity

I am trying to reproduce graph 1.7 from the book Channel Codes: Classical and Modern. The graph contains the capacity plots for both soft-decision and hard-decision decoding plus the Shannon limit. I ...
user avatar
0 votes
1 answer
20 views

Why is the second difference matrix of size n-2 x n in l1 trend filtering?

The l1 trend filtering is expressed by taking $||Dx||_1$ where D is the second difference matrix why is taken of size (n-2)xn rather than circulant matrix of size nxn. I have implemented in both ways ...
user avatar
0 votes
0 answers
12 views

Simulink delay block doesn't recognize vectors as intial conditions

I am trying to implement the kalman filter on simulink, for which I need the delay block to compute the new estimate based on the previous one. My state vector is three dimensional, and for some ...
user avatar
  • 41
0 votes
0 answers
47 views

Frequency filtering in the frequency domain vs. time domain

As a DSP newbie, I've stumbled into doing band pass filtering (of pre-recorded IQ data) in the frequency domain - which allows brick wall filtering (I'm just setting the IQ values of each consecutive ...
user avatar
  • 21

1
2 3 4 5
58